[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.
How do I loop a motion while touch swiping?
I'm in process of understanding the framework right now. I've examined the SampleApp1 code and I can see that if I swipe on the head, it will only play the motion once. Same goes for the body.
How do I make a motion keep looping when I swipe on the head? When I swipe on the head or the body, it will loop same motion over and over until I released my touch and it will slowly fade to idle state.
It's kind of something like this (skip to 3:21)
https://youtu.be/w5gQhcxTmuI?t=3m21sWhile that it seems it only loops the face expression but I wonder if I can apply motion for the whole parts too.
Thank you
0 ·
Comments
Try to modify the code as follows .
The modified point was put comments (Add Code) .
SampleApp1/Assets/Scripts/sample
[LAppModelProxy.cs]
set the swiping .mtn
[LAppModel.cs]
[MyGameController.cs]
The result will be this way .
Now I've noticed, it does loop the motion, but at the end of motion, it will jump back to first frame. Can I make the loop returning to specific frame instead of first frame?
I'd like to make my model keep in blushing state with eyes shut until I released my touch.
Or should I used Expressions for this? I'm thinking like... when the motion ends, I switched to display the expression mimicking last frame of the motion.
However , I don't know how to loop returning to specific frame .
It is you're right .
If your model keep in blushing state with eyes shut,
I think that it is good to use Expressions motion also together .
There is a simple Expressions use source in the past of thread .
Please be here in reference .
How do I change the model's expressions in Unity during gameplay?