- Home /
Question by
Fendyk · Aug 07, 2017 at 11:52 PM ·
androideditorcollision detection
OnTriggerStay working in Editor, but not on Android device
So I have a issue with my OnTriggerStay event. Everything seems to be working fine in the editor,, but when I use my android phone, it doesn't collide at all. I've tried everything and with no results.
This script is attached to a object with Box Collider & Rigidbody
The Colliding object has an Mesh Collider
My Unity version is 5.6.0f3 Android version is 7.0 API Level is 16
void OnTriggerStay(Collider col)
{
if (col.tag == "Tile")
{
TileName.text = "Tile collided !";
DebugConsole.Log("-- !! The player has collided with a tile !! --", "normal");
Debug.Log("-- !! The player has collided with a tile !! --");
}
}
Comment