Quantcast
Viewing latest article 17
Browse Latest Browse All 95

Anyone experiencing problem with gameObject.tag?

On my "OnTriggerEnter(Collider col)" I am checking col.gameObject.tag == "someTag"; It works well on Android/Editor mode, but not iOS/StandAloneWin. I logged the col.gameObject.tag on screen using OnGUI. What it gives me is col.gameObject.tag : gameObject layer's name (Not the Tag string) I also logged the col.gameObject.name -> this gives the correct gameObject name. *Note: I am converting project from 4.6 -> 5.5

Viewing latest article 17
Browse Latest Browse All 95

Trending Articles



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