StoryNote logo

Why when I reference a field of a component that is attached to a GameObject, Unity doesn't give me "an object reference is required for the non-static field ... " error ? Aren't script components classes and classes need an instance before you can access their non-static fields ?

by /u/TinkerMagus in /r/Unity2D

Upvotes: 1

Favorite this post:
Mark as read:
Your rating:
Add this post to a custom list

StoryNote©

Reddit is a registered trademark of Reddit, Inc. Use of this trademark on our website does not imply any affiliation with or endorsement by Reddit, Inc.