[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.
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.
0 ·
Comments
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.