Quantcast
Channel: Answers for "null exception reference on animation Unity 3.5+"
Browsing latest articles
Browse All 4 View Live

Answer by Coreyf716

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

View Article



Answer by Loius

Either recorder is null ("has not been given any value") or that object doesn't have an animation component attached.

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images