Quantcast
Channel: Answers for "'GetComponent' is not a member of 'Object'... who said I was using an Object??"
Browsing latest articles
Browse All 4 View Live

Answer by aldonaletto

This error should not happen, since *ent1* is a member variable declared as GameObject. The only thing I can think is that the compiler is creating a temporary variable *ent1* in the *for..in* loop -...

View Article


Answer by Mortoc

Your iteration variable has the same name as your member variable. Change the iterator (ent1) variable to a different name.

View Article

Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>