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 community.
※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 Ventura 13.0] (12/20/2022)
The currently released Live2D Cubism SDK is not guaranteed to work with macOS Ventura.
Please refrain from upgrading the macOS as they may not work properly.
The Cubism Editor license file may be lost after the macOS upgrade.
Please make sure to deactivate the Cubism Editor license before upgrading the macOS.
For more details
[NOTICE]
About the support for Mac models
Cubism Editor is not supported with Apple M1 processors.
Please refer to System Requirements for details.
We will not respond to any related inquiries with this message.

¿how can I load animations at runtime in Unity using StreamingAssets? Pls help T-T

The Cubism SKD manual for unity teaches you how to load a model at runtime using streamingassets. Now my question is: ¿how can I load animations at runtime in Unity using StreamingAssets? Sorry for my poor skills of english.
Tagged:

Comments

  • Hello, @taby
    Thank you for your contact.
    This is Live2D Support.

    To generate an AnimationClip from .motion3.json at runtime, load .motion3.json with CubismMotion3Json.LoadFrom() in the same way as loading the model, and then call CubismMotion3Json.ToAnimationClip().
    However, Unity does not allow runtime-generated AnimationClips to be used with the Mecanim or Playable APIs.
    If you want to use a runtime-generated AnimationClip, you need to play it using Unity's Animation component.

    Thank you.
  • Hello, @taby
    Thank you for your contact.
    This is Live2D Support.

    To generate an AnimationClip from .motion3.json at runtime, load .motion3.json with CubismMotion3Json.LoadFrom() in the same way as loading the model, and then call CubismMotion3Json.ToAnimationClip().
    However, Unity does not allow runtime-generated AnimationClips to be used with the Mecanim or Playable APIs.
    If you want to use a runtime-generated AnimationClip, you need to play it using Unity's Animation component.

    Thank you.

    Could you give an example of a finished code? I'm trying to get there using this answer as a reference but it still doesn't work.

    Thank you for your prompt response to the previous question.
  • Hello, @taby

    We cannot answer specific implementation questions.
    For more information about the Animation component, please refer to the official Unity documentation.

    Best regards.
Sign In or Register to comment.