split animation

Hallo :slight_smile:

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

In the model importer, be sure you split your animations there.

Scroll down to Import Settings.