Questions tagged [unity]

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Assigning a solid single color color block color array elegantly - Unity

Is there a more elegant way to create a color block array than to loop through the entire area?
0
votes
1answer
13 views

Ways to track login/loading progress dynamic?

Lets say we want to add a dynamic "loading bar" to our server-client game... the player presses on "login", a bar appears and shows the percentage of loaded assets and configurations from the server. ...
-1
votes
0answers
28 views

Can Someone Tell Me How To Learn Unity Easily? [closed]

I am 14 year old boy who likes programming! I know javascript, html and css. I like to make games so I use phaser to make games, I don´t know a lot of programming, and I don´t know anything about C++(...
-1
votes
0answers
40 views

Are there game engines 'optimized' for pixel art? [closed]

Unity is a HUGE pain to deal with. I've spent more hours trying to fix bugs inherent to Unity than I have actually working on my game, and this is my first ever game. The floating point rounding issue ...
0
votes
0answers
7 views

Switching between VR and Desktop (VR Controllers are not tracked in Unity Build)

I am developing a VR App in Unity3D for HTC Vive Pro (Wireless) everything works well with VR in the usual way. (SteamVR Plugin 2.5.0 (SDK 1.8.19)) Except for some requirement reasons in the same ...
0
votes
0answers
31 views

Changing alpha of single pixel value?

I'm trying to change the alpha values of a grayscale texture based on some conditions. Essentially if the color value is within some min and max threshold, set the alpha to 0.8, and if it is not ...
0
votes
1answer
24 views

How to not move my character when they collide using Unity and Box Collider?

I'm trying to get my characters near to each other so they can attack the other one, but when the player character or otherwise gets near they are pushed to the other direction when they collide. How ...
0
votes
0answers
28 views

Knockback to zone on non-rectangular field

I have a playing field which is divided in 4 zones (as seen on the image below) The player (blue) is on the second zone while there are 2 enemies (red) on the third zone. When the player throws an ...
0
votes
0answers
19 views

How do set a layer on an ECS entity?

I'm using Unity ECS entities to draw out some tiles. I would like to determine the layer (or sortOrder) of the rendered tile so that if a tile is placed over another at the same position, the tile ...
1
vote
0answers
30 views

How can I blend an animated character with ragdoll physics collisions?

I'm trying to make an effect that a ragdolled character controlled by an animator also affected by the physics collisions. Similar to this game: Crazy Shopping. The problem is animator controller ...
0
votes
0answers
13 views

Unity 2D Cinemachine weird behaivor for non rectangular confiner

I have been trying to emulate a sort of Megaman X4 way of following the player around platforming levels, where the camera is confined to certain boundaries of such levels. However, all the tutorials ...
0
votes
0answers
27 views

Unity Perspective Camera Width & Height In Visible World Units

I'm attempting to create 90 degrees top-down scenes where I'm working with a 4k or larger camera. What I'm trying to do is drop a script on the main camera and have a debug line that updates the main ...
1
vote
0answers
25 views

Is it possible to get a Vector3 from a single Input Action in Unity's Input System?

I'm trying to implement moving up/down (R/F), left/right (A/D), forwards/backwards (W/S) all at the same time using Unity's new Input System. There is an Action type for Vector3, but there doesn't ...
0
votes
0answers
25 views

How to run the built .exe file?

I'm fresh new to unity and I only followed several tutorials. Up to now, I always used/tested the games inside of unity and now I would like to use them even on different systems. Hence, I built the ...
0
votes
1answer
38 views

How can I check if my object just stopped rotating this frame?

...
0
votes
1answer
36 views

How to properly build unity mesh from 3dsmax Triobj extracted data

I'm trying to make a importer for my mesh file exported from 3ds max sdk using triobj I already changed YZ vectors and extracted data is just like a obj file. In unity I have no idea how to build it ,...
0
votes
0answers
20 views

How can I perform occlusion culling optimally in my isometric game?

I'm creating a 3d isometric game in Unity using a standard 3d environment with a fixed camera at 35 degrees from the horizontal. While the player is outside of buildings, the complete building is ...
0
votes
0answers
13 views

Unity: How to Swap sprites when hover over particular area [closed]

Hi i'm a rookie who doesn't know how to script, so please help. I'm trying to make a User Interface (project is in 2D btw) with three rows of buttons and a sprite/image to its side (decoration only). ...
1
vote
0answers
39 views

Why do we get artifacts on objects rendered using depth node + depth render camera on Android?

I've encountered and error I can't seem to find online. I get it on all the water shaders I test, and any thing else that I have a depth node + depth render script on the camera for. I'll share a bit ...
0
votes
0answers
16 views

Unity: Spritesheet character with different independent animations

I want to be able to animate different parts of a character's body independently and I can't figure out how to do it. I have an animation for the head and another for the legs, made by multiple .png's ...
0
votes
0answers
20 views

Unity keeps reseting my Input Manager settings

Basicaly, title. I want to change the second Horizontal entry in the Input Manager but when I do it won't save the changes afterwards. I rename the second Horizontal axis to "Strafe", and I'm ...
0
votes
0answers
9 views

Animation Parameters (To use later as prefab in any place in canvas)

Am using Unity3D 2019 and I'm creating a 2D WorkFlow Systems, so I found like solution to create pipeline liquid animation is the use of two Images objects first one used like a mask for the second ...
0
votes
1answer
59 views

Why do not Easy Mobile Pro scripts know about each other?

I am getting this error when I try to build the project: ...
2
votes
0answers
16 views

How do I edit a Unity InputField by clicking on Android UI Button?

I have been stuck on this problem for a long time and not sure what I need to do. Would appreciate any help. I am building an Android app using Unity. In my app I ...
1
vote
0answers
36 views

How do I ensure my Android build is not darker than in Editor?

My scene on the Android Build looks much darker. Based on my research about the topic, and from the texture of the light on the spheres, I assume it is because the light uses per vertex render mode ...
0
votes
0answers
26 views

Can you load all assets inside an Addressable folder?

So, I have a folder marked as addressable. This folder has many sub-folders, which might have more sub-folders, ultimately having some .png images. I would like to ...
0
votes
0answers
18 views

Model rendering issues

I have a problem with my built apk game: On some mobile devices, the models are either invisible(not rendered) or huge while it is perfect on other devices. This happens only to the models on my game, ...
0
votes
0answers
62 views

Unity's Box Collider isn't preventing Object from falling through floor

I'm working on a little "Tower of Hanoi" AR game in Unity using Vuforia, where the game is projected onto an image target. Now I wanted to make the rings "fall" into place, so I added an invisble ...
0
votes
0answers
18 views

Unity Advertisements Exception

I am implementing unity ads in my current project but when I try to Show unity ad it throws an exception on android device: Console Exception: ...
0
votes
2answers
37 views

Updating object's property on Start is visible for a second when game loads

I have a world selection scene in which I have GameObjects representing worlds. The GameObjects have default properties when the ...
0
votes
0answers
28 views

How to make a swinging mechanic like Dani's 3D game? [closed]

I am trying to make a swinging mechanic (like in Dani's Karlson 3D) any help would be appreciated.
0
votes
1answer
27 views

How to store the configuration of Unity prefab components during map generation?

I managed to have a basic map generation algorhytm, but now it needs some content. I generate abstract map data, which then will be used to build the map itself. When I want to generate monsters, ...
1
vote
2answers
66 views

Why does my first person camera attached to a rigid body vibrates?

I'm trying to make a first-person character with a rigid body. I need a rigid body because I want to add areas where the gravity comes from different directions so I also need to rotate the character ...
2
votes
1answer
50 views

How to align a 3D object with four points?

I'm sure there's a better way to articulate this question, but I lack the vocabulary. Imagine a skateboard. As it rolls straight down a road, the "deck" is aligned with the road, just offset a few ...
0
votes
1answer
75 views

Unity generates bad mipmap, making voxel terrains look bad

It's just a dirt terrain with grass blocks on the top. (which are just dirt blocks with green tops.) I sampled a Unity terrain's heightmap, and constructed a voxel terrain based on it, and divided it ...
-1
votes
0answers
16 views

Unity: Assets Bundle or Addressable [closed]

0 I have a Unity project with Assets which contains images, meshes, textures and scenes. I have modify project and move out assets to server side and upload them. I read that there exists to ways to ...
0
votes
0answers
5 views

ClientWebSocket not respecting proxy settings in options

I'm trying to set a proxy for a ClientWebSocket in Unity. Everything works correctly without a proxy, but the problem is it also works when I set an invalid proxy too, and I can't see the traffic. I'...
-1
votes
1answer
50 views

Mouse movement with deltaTime?

Is it good idea to multiply Mouse movement by Time.deltaTime? float mouseX = Input.GetAxis("Mouse X") * lookSens * Time.deltaTime; Should we use deltaTime with ...
1
vote
2answers
63 views

Rotate object always at same speed on screen, no matter camera distance?

I am rotating a globe like XCOM's hologlobe, I rotate it using Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta). I found a good value for ...
5
votes
0answers
128 views

How does a game like Enter the Gungeon handle forward and backwards movement with their orthographic set up?

So I've been scratching my head at this problem for over a week now, and would love some insight from anyone who might know a bit more. In my game I have the floor flat on the X/Z plane with walls/...
0
votes
0answers
11 views

AR Foundation video player in Unity without Vuforia

Hi I am trying to follow this mini tutorial and I can detect image and replace it with my 3d Object which is in AR Session Origin tracked image prefab. But when I try to add Video Player instade of 3d ...
0
votes
0answers
29 views

How do I get the Oculus Rift's position and rotation?

I'm looking for the functions to get the position and rotation data of the rift headset itself in Unity. I have the Oculus integration SDK installed and want to avoid using any pre-fabs.
2
votes
1answer
37 views

Unity RigidBody not rebounding as expected on low-impact collisions

I have a Rigidbody2D with a CircleCollider2D, on which I display a sprite of a circle. This Rigidbody can be "shot" in my game. I also have 4 rectangular BoxCollider2Ds on the edges of the game ...
0
votes
0answers
11 views

Adjust the jump with mixamo animation in 3D with C# [closed]

i have been working in 3D endless runner game. I downloaded my one jump animation from Mixamo. I also attached character controller with my Player but now i want to set the jumping with my desire ...
0
votes
0answers
23 views

Pushing an object on other colliders makes the pusher object go through

The Wall moves to the right and pushes the Character with it. The character travels along a bunch of Blocks with colliders attached to them. This is the result: At some point, the Character gets ...
0
votes
1answer
62 views

What's wrong with my line segment plane intersection code?

I'm following the algorithm on on this website for my line segment intersection test code. But when looking at my line segment and plane intersect it doesn't produce the correct point of intersection. ...
-1
votes
1answer
29 views

Null reference on gameObject that has been successfully referenced [duplicate]

It's exactly as the title says. I am getting a null reference error even though I have properly referenced the object. I have debugged my code to show that the result is always exactly what I need ...
0
votes
0answers
24 views

GA Measurement Protocol without Firebase

I was successfully using Measurement Protocol for my websites and web apps to gather analytics data. Now I'm trying to implement it in my game, but nothing happens. Debug url gives a valid response: ...
0
votes
1answer
52 views

why does Physics.Raycast always return my player game object instead of the object I clicked?

I have 3D world. I want to detect when the player clicks on a game object in the world. In this image, I have 2 objects I want to detect mouse click on. The white sphere does have collider on it. The ...
0
votes
1answer
23 views

The children of a Transform are in reverse order

I am making a simple 4-player turn-based card game. At one point, a player can "open" his hand on the table. As the player does this, I want cards to be aligned in a way such that left side of each ...