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
[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.

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

  • 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.
  • @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.