Forum Discussion
AnibalKLC
8 years agoHonored Guest
I have some issues with OnTriggerEnter
I have some issues with OnTriggerEnter and acivate a Area sound. My Scripts no detect the collider and no activate de sound when i was enter in the area.
-sorry for my english.
Script;
-sorry for my english.
Script;
public class AlarmaArea : MonoBehaviour {
public GameObject areaSonido;
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Player")
{
areaSonido.SetActive(true);
}
}
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 11 months ago
- 2 years ago
- 2 years ago
- 2 years ago