Quantcast
Channel: Answers for "null exception reference on animation Unity 3.5+"
Browsing all 4 articles
Browse latest 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

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 all 4 articles
Browse latest View live




Latest Images