Quantcast
Channel: Answers for "An instance of type UnityEngine.X is required to access non static member 'Y'."
Browsing latest articles
Browse All 4 View Live

Answer by Screenhog

You can't just put BoxCollider.size like that. You first need to tell Unity which BoxCollider to use. It won't just look for the BoxCollider on that object without you telling it to. var bc :...

View Article



Answer by aldonaletto

There are several wrong things here! RequireComponent.BoxCollider(); // should be @script RequireComponent(BoxCollider);! var mat : UnityEngine.Material; var materialscale : Vector3; function Start() {...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images