[About macOS Sequoia] (Updated October 22, 2024)
Live2D Cubism Editor 5.1.02 now supports macOS Sequoia.
Other Live2D Cubism products currently released are not guaranteed to work on macOS Sequoia.
Please refrain from upgrading macOS, as it may not operate properly.
Question : Looping & Not Looping a Motion (.mtn)
If this is how you loop a mtn:
---------------------
[ inside load function: ]
Simple.loadBytes(modelDef.motion, function(buf){
motion = new Live2DMotion.loadMotion(buf);
});
[ inside periodic draw function: ]
if(motionMgr.isFinished()){
motionMgr.startMotion(motion);
}
motionMgr.updateParam(live2DModel);
---------------------
How do you play a motion only once? (ie: not looping)
Thanks in advance)
0 ·
Comments
Live2D API doesn't function to motion play only once .
I think there is only flag management .
[For example]
------------------------------
var once = 1; // frag
if(motinMgr.isFinishied() && once > 0){
motionMgr.startMotion(motion);
once--;
}
------------------------------