- Home /
New Unity UI with OnTriggerStay.
I'm not very good with the new UI still. I want to make it so when the player is inside of a trigger certain text pops up. I know how to do this with the old UI but I want to use the new one.
For example :
void OnTriggerStay(Collider other)
{
if(other.collider.tag == "Player")
{
// turn sign gui on
}
}
Comment