Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Enable objects to enter the trigger

$
0
0
Hello how are you? , the map of my game this very large with many details and this giving lag, so I tried do this script that activates objects when entering a trigger, more did not work alguem can help me? var Cena: GameObject; function OnTriggerEnter(otherObj: Collider){ if (otherObj.tag == "Player"){ Cena.SetActive.active = true ; } else { Cena.SetActive.active = false ; } }

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>