- Home /
split animation
Hallo :)
how I can spilt am animation?
i.e. if the animation is 20", something like
if( Input.GetButtonDown( "Fire2" ) ) { animation.Play("swing"); // from 0" to 10"
if( Input.GetButtonUp( "Fire2" ) ) { animation.Play("swing"); // from 10" to 20"
thanks
Comment
Answer by IndieScapeGames · Aug 02, 2012 at 03:52 PM
In the model importer, be sure you split your animations there.
http://docs.unity3d.com/Documentation/Components/class-Mesh.html
Scroll down to Import Settings.
thanks, but isn't an imported animation, is do in Unity with animation panel
maybe can use this
http://docs.unity3d.com/Documentation/ScriptReference/Animation.Blend.html
but don’t understand how do
Your answer
![](https://koobas.hobune.stream/wayback/20220613075059im_/https://answers.unity.com/themes/thub/images/avi.jpg)