- Home /
Question by
pro_ahmed_magdy · Aug 25, 2019 at 05:27 AM ·
animationscript.animationstate
why animation have not AnimationState ?
i created an animation and i tried to get a frame or stop animation in current time , but i found this message "NullReferenceException: Object reference not set to an instance of an object"
Comment
Answer by Parokonnyy · Aug 25, 2019 at 08:11 AM
Probably you forgot to hash a component in Start function? Or check out that animation component exists in the same gameObject as the script.