You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like the imported animations to loop. There is no default GUI for animation with wrap mode selection, so this needs to be done inside the importer script.
I've tried to set wrapMode in MidiAnimImporter class:
var anim = clip.ConvertToAnimationClip();
anim.wrapMode = WrapMode.Loop; // <--- set wrap mode
context.AddObjectToAsset("MIDI", anim);
context.SetMainObject(anim);
But it's still not looping. The animation clip is running via animator with a single entry -> clip logic.
What else is missing to have the clip looping?
The text was updated successfully, but these errors were encountered:
I'd like the imported animations to loop. There is no default GUI for animation with wrap mode selection, so this needs to be done inside the importer script.
I've tried to set wrapMode in MidiAnimImporter class:
But it's still not looping. The animation clip is running via animator with a single entry -> clip logic.
What else is missing to have the clip looping?
The text was updated successfully, but these errors were encountered: