Dear Users,

Now, we are seeking users who can give us a hand with expertise to evolve our software more dynamically.
If you are willing to help us, we’d like you to make a registration for “Live2D Creators Circle” via the link below.
Designers, programmers, translators are especially welcomed so far.
(More detailed explanation will be given to you before we ask you to do tasks)

https://docs.google.com/forms/d/1G5KK_GL3ozwPXtTHrpi_ktbsI8UZf8jlYRSlDworyBo/viewform?usp=send_form

How to start 2 animations in Unity at same time?

edited November 2016 in Techniques & How-tos
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.