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
[INFORMATION](4/25/2024)
Cubism Editor 5.1 alpha3 is now available!

We have incorporated some of your comments and suggestions. Thank you for your comments and requests!
We will continue to welcome your feedback on alpha3.

Download/ Manual and Update History
Options

Play animationClip failed on Android Devices with unity SDK.

I am using Unity sdk for live2d to develop an android app. I have tried to load a .model3.json file on sdcard of Android devices and invoked the `CubismMotionController.PlayAnimation` method, but the animationClip did not run. I have added 3 events to the AnimationClip and none of them is triggered. But using AnimationClip bundled in Unity resources, with the file name of ".anim", work well. I had to use the `CubismFadeController` to play the animation as an alternative, because it can play animation without AnimationClip. But it's just a workaround, not a good solution. I wonder whether anyone else also encountered such problems or who can tell me the reason for the problem. Thanks ahead.

Comments

  • Options
    Moreover, the same code that load local resources, not .anim files but the .json files, work well on Unity Editor on PC, and didn't work on Android devices.
  • Options
    @wkable

    Is the AnimationClip you are playing generated by runtime?

    AnimationClip generated by Unity at runtime will always be in legacy format.
    Legacy AnimationClip cannot be played by Animator or Playable API.
    Therefore, CubismFadeController and other functions of Cubism SDK that use these functions will not work properly.

    There are two ways to solve this problem: either customize it to use the "Animation" component that plays Legacy style AnimationClip, or use an AnimationClip generated in Unity beforehand.
Sign In or Register to comment.