Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

error CS0120: An object reference is required

$
0
0
Assets/Scripts/BasicMover.cs(9,28): error CS0120: An object reference is required to access non-static member `UnityEngine.GameObject.transform' I'm trying to write a script that will simply rotate the object around the Y axis. But I get this error code. How do I fix that?

Viewing all articles
Browse latest Browse all 2891

Trending Articles