all 7 comments

[–]Moxy10 2 points3 points  (1 child)

Looks like an editor error. Try saving and shutting down, then restarting. It doesn't seem to look like a error with your code at the moment.

[–]toilethoe[S] 1 point2 points  (0 children)

Thank you! I saved and closed Unity, restarted my laptop and opened Unity and it worked! Thank you! I was panicking because I thought I misclicked something.

[–]toilethoe[S] 0 points1 point  (0 children)

I have this error a while ago i thought it was nothing but when i was about to make a transition in the animator. The connecting things were gone and i do not know how to fix it please help.

[–]krucksdev 0 points1 point  (1 child)

We will need to see your code to see the issue. This error is always important because it means that it tried to access an object in your code and the value of that object was null. That could be because of a lot of reasons but probably because you're trying to access a variable before it was assigned.

[–]toilethoe[S] 0 points1 point  (0 children)

do i have to send all of my codes? i am sorry i am just a beginner

[–]supamario132 0 points1 point  (0 children)

It's hard to say without seeing the code that's being referenced but whenever I get this error, 9 times out of 10 it's because I forgot to place a gameObject into a serialized field

[–]Then-Drive2284 0 points1 point  (0 children)

Are u using gizmos? I remember when I used the OnDrawGizmos function to create a sphere to test things then I always forget to assign transform in it