Moving the gun with camera
I want my gun moving with camera but it’s not rotating with the camera for some reasons.
How can I move my pistol on y axis when moving my camera
(https://i.sstatic.net/v8KZUz9o.png)
First I removed the empty game object of camera but as it was not working, I tried making it the child of pistol. When I am moving the camera on X axis the gun is moving with it but not happening on y axis.
How can I move my pistol on y axis when moving my camera
(https://i.sstatic.net/v8KZUz9o.png)
First I removed the empty game object of camera but as it was not working, I tried making it the child of pistol. When I am moving the camera on X axis the gun is moving with it but not happening on y axis.
Why my asset keep disapearing once i press play?
I have an asset of a chest on my project. I copied to use it throughout the map with different items. But when I test the game, the copies are not where I put them. In fact it came to my attention, when I interact with the chest, it’s like all the chests are in the same position.
Picking up clones of guns in unity 3d
Hi can someone help me? I want to pick guns which are spawning randomly as I used instantiate but they are not working as they are spawning and are being referred as clones. How can I pick clones of the guns?
Understanding Different Behaviors in Unity Rotation Calculation
I have recently begun learning Unity and encountered a perplexing issue. I implemented two different scripts to control the rotation of a GameObject, specifically a ball. In the first script, I calculated the rotation by multiplying by Time.deltaTime in a separate line. This caused the ball to move from left to right and vice versa. In the second script, I calculated the rotation by multiplying by Time.deltaTime within a single line, which resulted in the ball moving forwards and backwards.
How can I design a high performance PC game game hotkey system?
How can I design a high performance PC game game hotkey system?
Hotkey system requirements:
Runtime hotkey update, replace, disable
Individual hotkeys, hotkey combinations, etc.
thanks!
How do I lock the camera rotation if the camera is a child of the player in unity 2D?
I am making a racing game similar to Hill Climb Racing. To play the game, you start in the menu, and pick your car. Then, a prefab of the car is instantiated. The prefab of the car contains the camera, so that it knows what to follow. I have a camera follow script attached to it. However, the camera rotates with the car.
Assistance needed with Error when trying Unity
So I am new to Unity and I am trying a little game.
How do I make sound in specific locations in Unity 3D?
I wanna make my first horror game, where player, when he goes out of the path, hears a specific sound. I made a “Fence” by using ProBuilder, result is on the first photo.