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

How can this be fixed

$
0
0
I get the following error in MouseLook.cs. I'm new to C# so this is puzzling me Error CS0120 An object reference is required for the non-static field, method, or property 'Renderer.materials' AncientTimes.CSharp This is the current code. if ( GetComponent() ){ GetComponent(); Renderer.materials[materialIndex].SetTextureOffset(textureName, uvOffset); } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles