I am trying to animate a gameObject using LeanTween which has got destroyed already.

The MissingReferenceException occurs in LeanTween.setOnUpdate();

The null check ain't working too (gameObject != null)

I have used LeanTween.cancel(gameObject,false); still throws an exception MissingReference

  • 1
    \$\begingroup\$ You can check if a gameobject is active or not in the hierarchy with, (gameObjectName.activeInHierarchy == true) \$\endgroup\$ – Thalthanas Jul 28 '17 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.