Category "unity3d"

Character is not able to move by using (A , S , D) in unity

Today I watched an video on how to make movement in youtube (https://www.youtube.com/watch?v=bzheMJQVtBI) but the movement occur only when I press W key or chan

Horizontal movement of player causes egregious numbers when checking vertical velocity

Player movement is working (at least somewhat) now, however one issue remains, and that's the insane numbers the y velocity of the Rigidbody2D on the player. Si

Target Framework not installed when opening a Unity project with Visual Studio 2022

I am trying to open a C# solution that has been generated from a Unity v2020.3.19f project with Visual Studio 2022. Opening it with Visual Studio 2019 works jus

Unity Scene Corrupted?

I'm working on a Unity game in school and it was working fine until a few days ago when the project would not open. I had left my project open after I left the

Why is SetActive not working in my script?

A new problem has just appeared in my code. In OnTriggerEnter i'm testing if the player collides with the obstacle. When I tell the script to display a message

Why is SetActive not working in my script?

A new problem has just appeared in my code. In OnTriggerEnter i'm testing if the player collides with the obstacle. When I tell the script to display a message

NavMeshAgent in unity doesn't bake (Doesn't turn blue)

I made a few surfaces and a few agents, then when I wanted to make a couple more the old navs and new ones just stopped working it says it only works if you pla

Why do await Task.Delay(10); stops execution in unity Web-GL?

I am using await Task.Delay(10); in unity C# for delay .After build and run in Web-GL format .The execution stops at this line that has delay .When I remove the

Why does hit.point reset to 0,0,0 within the same raycast?

I'm super confused. I am making a 3D fishing minigame with Unity. When I raycast at a water plane, I move a lure object to the point the raycast hits the water,

Why does Mixamo animation not work in Unity?

I downloaded an animation from mixamo as I have always done. Imported it to Unity and added to my character animator as usual, but I only get a T-Pose. Even in

Unity FPS Controller camera only moves when mouse movement stops

Using unity FPSController asset, here's the code for actually moving the camera called in LateUpdate() method. private void CameraRotation() { // if there i

Unity - How to rename Mesh via script?

I am working on a script to rename Mesh in Unity directly because every time if I rename a FBX file the mesh asset still keep the old name as last time it has b

Public IEnumerator not being ran even when called?

please excuse the messy code, all of this was written very hastily because I'm on a time crunch public class EnemyShoot : MonoBehaviour { [SerializeFiel

Unity Quaternion rotation with rigidbody is influences rotations it shouldn't

Hey fellow programmers, I have a small problem with Quaternion (who doesn't). I make an airship that is flying using rigidbody. Making it fly forward and turnin

Loading assets from Asset Bundles for Play Asset Delivery in Unity

I am currently maintaining an old project which I would very much like to keep the old code and avoid refactoring of the old code if it's possible. To upload it

Twitter API to Unity

I am a designer and I code only a little bit. I would like to know how I could use the output of the Twitter API (which I master) to use them on Unity. Which pr

MRTK hand tracking does not work properly with Oculus Link

I am creating a VR game in Unity. I am having a problem with hand tracking not working properly with PCVR (.exe build) only. The detailed situation is as follow

Unity VR racket doesn't interact well with ball

I am trying swing a ball with a racket, and the interaction doesn't feel well, I can't even swing the ball as when I try to do that the ball will just go throug

Problem with transform.rotation in unity c#

I`ve been doing a game and i got a problem , i tried to do a jumping cube but if you jump a lot the cube can rotate , i tried to restrict rotation by using: //

How do I make my C# code for Unity in Visual Studio look/work like in the tutorial (picture)

I'm trying to make a mobile game with Playfab and Unity. It's my first time using Unity and Visual Studio. Usually I'm only using VS Code. The code is working