Category "unity3d"

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

How to translate c# Task to Unity coroutine (OnCollisionEnter2D)

help to translate this code in coroutine. Im making game in unity and need to creat coroutine for it. I try made it, but it doesnt works. private void

Unity: skinned mesh vertexbuffer output slightly different than correct results

It’s like this hip is stuck in place, with in the pictures(being at different times in the animation since I can’t upload a gif) the red wireframe i

Plastic SCM change server/organization in Cloud

as I just installed Plastic SCM on my home computer, and connected through Unity, I was prompted to choose Organization. I managed to select the incorrect one a

How to spawn only one object in Unity AR foundation

I new for Unity and C# can someone help me? I'm creating a kids game and they tend to tap on the screen accidentally and as they look around but then they spawn

SketchUp and Unity3D

I use SkethUp for 3d-modelling. I have some problems with exporting the models with images in Unity, the images aren't exported if I use file.skp and are export

pls HELP ME HELP ME HELP ME HELP ME [closed]

i was making a game in unity and i got this error: Assets\PlayerController.cs(37,21): error CS0120: An object reference is required for the no

In a probuilder object with inverted normals. Collision seems to not work with this one item

I have made my level out of a probuilder object that has inverted normals so the player may exist inside of it. This has caused some issues as for some reason.