Question by
BURN_2 · Jan 09, 2017 at 08:29 AM ·
gameobject.tag
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
Comment
Your answer
Follow this Question
Related Questions
Problems with Physics.Raycast 0 Answers
How to check if two objects have same tag? 1 Answer
using gameobject.find('key') but i want to make it with a tag 1 Answer
OnCollisionEnter doesn't work ! 2 Answers