Quantcast
Channel: Answers for "How to compare if two gameObjects are the same?"
Browsing all 4 articles
Browse latest View live

Answer by Mouton

**[Edit:]** Changed the code to match your needs + some further informations below What the OP needs is not comparing if two GameObject references point to the same GameObject but compare if the...

View Article



Answer by s.ta.c.

I'm experimenting since morning and these are results I got so far. When you compare two gameobjects directly with "==" operator, it only returns true if they are exactly same object (they must refer...

View Article

Answer by Mouton

**[Edit:]** Changed the code to match your needs + some further informations below What the OP needs is not comparing if two GameObject references point to the same GameObject but compare if the...

View Article

Answer by s-ta-c

I'm experimenting since morning and these are results I got so far. When you compare two gameobjects directly with "==" operator, it only returns true if they are exactly same object (they must refer...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images