hi i didnt know if i should publish here or on animation forum, anywaway i have a problem and i can assign a animation in a
public Animation cen;
hi i didnt know if i should publish here or on animation forum, anywaway i have a problem and i can assign a animation in a
public Animation cen;
From the video clip, you are trying to serialize an AnimationClip (Unity - Scripting API: AnimationClip), not an Animation.
what the difference ? ty anywayi did public AnimationClip cen;
and why cen.play is not working .-.
Animation is the Component that lives on the Gameobject and plays the animation clip supplied.
You need a reference to the Animation component and assign the animation clip that you have referenced via the public variable to it.
Then you can play the Animation via the Animation Component.