void ontriggerenter not working
2D for 2D (OnTriggerEnter2D) and 3D for 3D (OnTriggerEnter)
at least one object needs to have rigibody, and collider set to isTrigger
yea and this is for unity game engine only
void ontriggerenter not working
2D for 2D (OnTriggerEnter2D) and 3D for 3D (OnTriggerEnter)
at least one object needs to have rigibody, and collider set to isTrigger
yea and this is for unity game engine only
ontriggerenter unity not working
void OnTriggerEnter (Collider other)
{
if (other.gameObject.tag == "Object")
{
Debug.Log ("Collided");
}
//at least one object needs a rigidbody, and a collider set to isTrigger.
//the problem may be that you put it in a void, you need to take it out of voids for it to work
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us