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.

0 votes
1 answer
50 views

Can PNG format be used for alpha channel-packing for URP shader in Unity engine?

Note: I intend to use only the Inspector window to use all textures, not Shader Graph or Nodes or any custom scripts. Also I might use some technical terms incorrectly by mistake, as I'm not much ...
Vikas's user avatar
  • 103
0 votes
2 answers
87 views

When should an object with a collider have a rigidbody?

I had some questions about Physics / Rigidbody in Unity. I have a 2D sprite with a collider. The 2D sprite is simply a card that I place on a table with the mouse. I use the collider for raycasting (...
Curio's user avatar
  • 199
0 votes
1 answer
47 views

Rendering Sprite from tightly packed atlas onto RenderTexture

I'm currently working on a Unity BepInEx Plugin that should allow users to customize certain textures in the game. As part of this, I need to extract sprites from a sprite atlas into individual ...
Ashiepaws's user avatar
0 votes
2 answers
104 views

Why is my rigidbody not moving when I press the buttons? I can't see any reason it shouldn't

The "Car" in question is a plane. The question is pretty self explanatory. Here's the Car in the Hierarchy: Here's the car in the inspector: And here's the PlayerMovement script: ...
IamaPineapple24's user avatar
1 vote
1 answer
80 views

Drawing textures to a RenderTexture + rotating in 90° intervals

For context: I am currently working on a BepInEx Plugin for the Unity-based game Hollow Knight: Silksong. The goal is to be able to replace the base game sprites with custom ones. The game uses Sprite ...
Ashiepaws's user avatar
0 votes
2 answers
76 views

How would I make a "slideshow" cutscene?

I'm making a 2D game using Unity and I want to implement cutscenes that change over at certain lines. ...
August's user avatar
  • 1
1 vote
1 answer
89 views

Is there a way in Unity to detect which gameobjects are making it take longer to enter/exit play mode?

I have a scene with quite a few gameobjects in it and for the first time since using Unity, when I enter/exit play mode (or even close and reopen the scene) it takes about a minute to complete this. ...
FrontEnd's user avatar
  • 1,789
0 votes
0 answers
84 views

FPS improves when parents of skinned AI are disabled before play, but not when disabling them during play

I am playing a scene in Unity editor. If I play the whole scene, the FPS is 125. Next, there are 2 test cases. Case 1: If I disable some big game objects first, and then play the scene, the FPS is ...
Job_September_2020's user avatar
0 votes
0 answers
96 views

How is 2.5D achieved with 3D Objects in a 2D scene?

I would like to make a 2d top down scene with 3d Objects. I could make a 3D scene and just tilt the camera 45 degrees on X and that would give me basically the same thing(I think). But I started with ...
MrV's user avatar
  • 49
0 votes
1 answer
46 views

How to Render Moon Phases from a Texture2D in Unity Using a Script?

I have a Texture2D of the Moon, and I want to render different moon phases so that it visually matches the examples shown here Celestial Programming : Moon Phase Image Rendering, I've tried several ...
Ahmed Dyaa's user avatar
0 votes
0 answers
40 views

Static event not working on scene reload(SceneManager.LoadScene();)

(Maybe good to know, this game is part of a game dev course where we had to make a Vampire Survivors like game) I thought SceneManager.LoadScene() reloaded EVERYTHING in a scene, like a clean state, ...
MrV's user avatar
  • 49
2 votes
1 answer
89 views

Can't Get Unity New Input System To Work

For context I am very much a beginner. I have been trying to get the player to move using Unity's new Input System following this tutorial. It's only a year old and others in the comments seemed to ...
Inky Solomon's user avatar
2 votes
0 answers
89 views

How to fix LOD cracks with Marching Cubes?

I'm creating voxel planets using Marching Cubes (MC). To handle nearby (high-resolution) and distant (low-resolution) blocks, I use an Octree data structure. NOTE: The implementation uses compute ...
Light's user avatar
  • 21
2 votes
0 answers
61 views

How can I disable the built-in gyro control in Cardboard VR?

When I create a project in Unity, enable Google Cardboard VR support, and build a project on Android, the camera is controlled by a gyroscope, although I did not write any controllers. Even if I ...
Илья Виноградов's user avatar
0 votes
0 answers
142 views

Terrain vs mesh : which one is better in terms of performance and storage size?

I have heard many conflicting opinions about the pros and cons of using terrain vs mesh in Unity. Some people say that terrain has better performance while others say mesh does. So, I am not sure ...
Job_September_2020's user avatar

15 30 50 per page
1
2 3 4 5
1116