Skip to main content

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
2 votes
0 answers
90 views

Unity's documentation state that GPU Instancing supports baked lighting: Since Unity 2018.1, Global Illumination (GI) rendering is supported by GPU Instancing in the form of light probes, occlusion ...
bryx19's user avatar
  • 21
0 votes
1 answer
186 views

I’ve looked at several tutorials regarding Addressables and it seems that loading an asset revolves around referencing it in the inspector, loading it in, and then finally instantiating it but putting ...
mtg's user avatar
  • 23
1 vote
2 answers
221 views

I have a game with a player controlled by a CharacterController. I also have a MovingPlatform. When the player lands on the moving platform, it becomes a child object of it, so that it should move ...
Erel Segal-Halevi's user avatar
1 vote
0 answers
148 views

I'm new to netcode and game dev and I'd like some input on a multiplayer buff/debuff system I'm working on in Unity, using NGO with a dedicated server. I aim to use a server authoritative architecture ...
Sean2148's user avatar
  • 145
0 votes
0 answers
75 views

I am developing an endless runner mobile game, Similar to Subway Surfers. I make my player character rotate slightly left or right and then return to facing forward when sliding left or right. The ...
Achie1's user avatar
  • 181
1 vote
0 answers
31 views

I’ve been struggling with export issue between Blender and Unity, and I’d appreciate some help. What I’m Trying to Do: I’ve created a character and a chest armor piece in Blender. Both are rigged to ...
Hasan Huseyin Ozkaya's user avatar
1 vote
0 answers
274 views

I am trying to convert a transform from the Unity Coordinate System to the Unreal Engine Coordinate System (and others). Ideally, I want to take a position, rotation (in Euler angles), and a scale as ...
Benjamin Danger Johnson's user avatar
1 vote
1 answer
238 views

In Unity, is there an efficient way to find all prefabs that are using a specific script component? One easy but inefficient way is to iterate e.g in Bash, all the .prefab files in the project, and ...
kyopa's user avatar
  • 143
1 vote
1 answer
291 views

I built my entire game in Unity based on my Android phone resolution, both for UI and object sizes. Now, everything looks good for a 1080 x 2400 resolution, but I know that's not the aspect ratio of ...
Usylom's user avatar
  • 31
0 votes
0 answers
45 views

If I have a lot of data to save, say 500 ints for how many stars a user has collected, some text for user created levels, settings, etc. What would be the best method to save all of this? Should I use ...
CheckerT's user avatar
  • 176
0 votes
2 answers
263 views

I am working on a robotics simulation application in Unity. I want to replace the default physics engine, PhysX, with Mujoco. My goal is to enable a toggle within the Unity application to switch ...
Sachin Sabbarwal's user avatar
0 votes
1 answer
194 views

I work on a simple arcade game. The player controls a diver. The diver moves forward at a constant speed. The player can use input controls to move the diver up or down. Along the way, the diver ...
Erel Segal-Halevi's user avatar
1 vote
1 answer
313 views

I am upgrading my code from coroutines to using async-await and Awaitables on Unity 6. I have the following code of a spawner: ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
76 views

I have a game with several scenes, all loaded using addressables: A persistent scene that stays loaded with things like the main camera and certain common game systems. A lobby scene A game scene ...
Programmer9000's user avatar
2 votes
1 answer
208 views

I'm developing a character controller in Unity and running into a problem with my character repeatedly entering and exiting a trigger collider on a moving platform. The character should stay within ...
phdex's user avatar
  • 61
0 votes
1 answer
150 views

I have a very simple scene in Unity, with a single object (with a SpriteRenderer). When I view it in the Unity simulator, it looks like this: When I click "rotate", to rotate the simulator ...
Erel Segal-Halevi's user avatar
2 votes
1 answer
185 views

I am trying to work with two monitors; I want to have two cameras in my scene, such that each camera projects to a different monitor. I tried to follow this guide, which says that I have to change the ...
Erel Segal-Halevi's user avatar
1 vote
0 answers
78 views

Animations are made up of frames, for example in the below animation it takes Ryu 3 frames to execute his kick, it does damage during the next 12 frames, and finally takes him 17 frames to recover. ...
FrontEnd's user avatar
  • 1,789
2 votes
0 answers
246 views

I've got a sprite in-game (using a Sprite Renderer) that was drawn by our artist at a very high resolution, but in-game can appear quite small on-screen: My boss has been complaining that the ...
OrdiNeu's user avatar
  • 21
0 votes
1 answer
287 views

I created a new scene in Unity, dragged an image file, and scaled it to fit the screen size. Here is how it looks like in the Scene panel: When I change the screen size, e.g. by switching to ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
62 views

I'm using a Particle System with the Shape in the shape module set to Sprite Renderer, and the Type set to Triangle. As far as I can tell, the default behavior is for the Particle System's emission ...
Nuclear Applejack's user avatar
0 votes
0 answers
61 views

I have a simple class with a ParticleSystem prefab: public class ParticleEffects : MonoBehaviour { [SerializeField] public ParticleSystem starExplosion; } And ...
tariq's user avatar
  • 121
0 votes
0 answers
108 views

I'm trying to make an active ragdoll in Unity 2D. The problem is that when you see mine as compared to Stickfight the Game or Off the Sticks, mine is very stiff and "janky". I just don't see ...
Spaghetti's user avatar
0 votes
1 answer
85 views

Consider a game script that has an array of prefabs: [SerializeField] List<Cat> cats; Another script in the scene has created wall objects, which are ...
tariq's user avatar
  • 121
0 votes
1 answer
62 views

I'm simply trying to disable collisions for a Rigidbody2D: rb.isKinematic = true; rb.detectCollisions = false; as per: https://...
tariq's user avatar
  • 121
1 vote
0 answers
151 views

In the following code, I try to draw a mesh using 4 different methods: DrawMesh and RenderMesh both do work DrawMeshInstanced and RenderMeshInstanced both don't work Code: ...
aybe's user avatar
  • 815
0 votes
1 answer
154 views

I am playing around with Unity and lighting is proving to be the most nerve racking thing about it so far. I think I understand the types of light and pros and cons of bake vs realtime but when I do ...
Alejandro's user avatar
0 votes
0 answers
158 views

I have an app in Unity WebGL that should run for a long time (a few days) without stopping. One issue I notice is that, the longer the app runs the browser memory usage gets bigger. Is this related to ...
Ivan's user avatar
  • 379
0 votes
0 answers
340 views

If we assume that Teardown was made in Unity, how would it be made in a high-level way? See the game here. I tried some things like breaking each shape down into small voxels, but how do you determine ...
Spaghetti's user avatar
0 votes
0 answers
39 views

I am working on a 2D RTS game in Unity. One thing I want to represent is a minimap indicator that shows the camera's viewport. I got it working, but it doesn't reflect how the camera is occluded by ...
Evan Smith's user avatar
1 vote
1 answer
176 views

I am creating an AR app in Unity3D using AR Foundation and Google ARCore. I set up all the necessary configurations, created the build, and installed it on an Android device. The app runs, but it only ...
Muhammad Faizan Khan's user avatar
0 votes
0 answers
106 views

I am attempting to make a CompositeTile out of 4 sprites (one for each corner of the tile) that can be used as a single Tile ...
Martin Bocanegra's user avatar
0 votes
0 answers
127 views

I'm attempting to play an animation from different layers but having some difficulty. I'm trying to play animation transitions in one layer and then go back to the base layer to play an animation ...
wrappingduke's user avatar
1 vote
2 answers
277 views

I'm working on a billiard game in Unity (2D), where I used 3D sphere visually and I'm trying to make the ball's rotation look natural as it moves across the table or hit another. I've got the ball ...
Tishko Sabir's user avatar
0 votes
1 answer
80 views

I have a simple yet difficult task. When you hit play in Unity game camera should match camera in scene view. It should be done once not constantly. This show zeros uniti I switch to sceneview in ...
Askhento's user avatar
  • 123
1 vote
1 answer
141 views

I wrote a shader that implements most ShaderLab commands: Rendering without anything fancy: After enabling conservative rasterization: After disabling Z write: Ironically, that's exactly what I ...
aybe's user avatar
  • 815
1 vote
1 answer
453 views

I have a camera setup and I want to display a UI on it. I got a basic UI using UI toolkit shown below: So I have a keyboard button setup so that when the button is pressed a boolean toggles and turns ...
user25832's user avatar
  • 123
0 votes
1 answer
201 views

I have some gameobjects that in some conditions have an additional material added to them programatically at runtime. I then later want to be able to remove that specific material. How can I identify ...
Michael's user avatar
  • 103
0 votes
0 answers
117 views

I want to learn how to project textures on to the mesh and overlap them like in Let’s Play Pottery. I have an idea for game. I created Models, 3d viewer but I can’t figure out how to implement texture ...
Danish Arain's user avatar
1 vote
0 answers
91 views

I would like to load scenes via asset references, just like other assets. But SceneAsset belongs to the UnityEditor namespace, ...
JVon's user avatar
  • 31
0 votes
1 answer
353 views

I am exporting my Unity terrain to a mesh. Because the terrain is big, I also split it into multiple chunks. Moreover, I also generate chunk LODs. I enable a certain chunk LOD in-game based on the ...
UnknownUser's user avatar
1 vote
1 answer
110 views

I’m using Unity’s built-in Leaderboards for my game. I want to be able to change the metadata attached to a player so they can change teams, but ...
armorhide406's user avatar
3 votes
2 answers
1k views

As you may know, Unity can have issues correctly rendering transparent 2D Sprites/Textures exported from Photoshop or Figma. Reason being that most of these tools operate in Gamma color space while ...
Nenad Slavujevic's user avatar
0 votes
1 answer
87 views

I am currently developing a 2D game in Unity, and I'm having an issue with moving coins to a specific position in the UI Canvas when they are spawned. I want the coins to animate from their spawn ...
Javier Triviño's user avatar
0 votes
0 answers
128 views

I have joined a new project and encountered an error: Edit: Here is the text error. Property (_MainTex) already exists. Use SetTexture instead. As you can see it ...
Askhento's user avatar
  • 123
1 vote
1 answer
201 views

could you please guide me or help with sane architecture basics in Unity? I'm making a tower defense game and I'd like to have modular approach without using frameworks, so no ECS/DOTS/SOAP I want to ...
Fen1kz's user avatar
  • 195
0 votes
1 answer
63 views

I've spent hours trying to find the problem with this: ...
Sami Salama's user avatar
1 vote
0 answers
123 views

In Unity Visual Scripting, I'd like to check to check if a Scriptable Object has data in it or not. So to do that, I tried using a Null Check node on the data directly: You can clearly see that there'...
kanamekun's user avatar
  • 399
1 vote
1 answer
154 views

In my Unity game, the "Interact" action is used for multiple tasks like opening doors and grabbing/dropping objects. However, there are scenarios where the player has an object in their ...
Roberto's user avatar
  • 113

1
3 4
5
6 7
335