Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this forum.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.

How to start 2 animations in Unity at same time?

edited December 2023 in Help
Good evening.
I would like to know whether it is possible to play 2 animations for a single character at the same time. For example, if there is a big number of facial expression and body positions, is it possible to create transition animation automatically between all of them? When I try to use the MotionQueueManager, the first animation stops. I can only play one animation at a time.

Comments

  • @MacKot

    If you want to play back multiple motions at a time, you need to create multiple 'MotionQueueManager's. Here's how you could do it:
    MotionQueueManager motionMgr1, motionMgr2;
    
    // Play motion.
    motionMgr1.startMotion(motion1);
    motionMgr2.startMotion(motion2);
    
    // Update parameters.
    motionMgr1.updateParam(live2DModel);
    motionMgr2.updateParam(live2DModel);

    Please be aware, however, that, whenever multiple motions affect a single parameter, the value of the last motion will be used.
Sign In or Register to comment.