Quantcast
Channel: Answers for "null exception reference on animation Unity 3.5+"
Viewing all articles
Browse latest Browse all 4

Answer by Coreyf716

$
0
0
Try this: function RecoOn() { GameObject.Find("// Parent GameObject").animation.Play("RecOn"); audio.PlayOneShot(recording); GameObject.Find ("Cube1").renderer.enabled = true; } Also, it's 'GameObject.Find'.

Viewing all articles
Browse latest Browse all 4

Trending Articles



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