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

Script.Enabled does not work in Unity 5+

$
0
0
Hello! I've read all topics about it but somehow I cannot make it work. How can I disable a script using javascript in Unity 5+? ScriptName.enabled = false; GetComponent("ScriptName").enabled = false; GetComponent(ScriptName).enabled = false; None of the above codes are working for me. Thanks if you can help.

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>