Search Unity

Question AnimationClip creation in runtime.

Discussion in 'Animation' started by Hecocos, Sep 7, 2023.

  1. Hecocos

    Hecocos

    Joined:
    Nov 29, 2021
    Posts:
    39
    Hey:
    I need create generic AnimationClip in runtime according to user's custom data. I uesed AnimationClip.SetCurve to achive it. It works in editor. But According to ducument: upload_2023-9-7_14-43-32.png
    So, it means i can't do it in Building versions like Andriod or ios ? I can't use legacy animation clip because Animator doesn't support it.
    Appreciate it.
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,564
    If you want to create animations at runtime, you need to use the legacy animation system. That's your only option.
     
  3. Hecocos

    Hecocos

    Joined:
    Nov 29, 2021
    Posts:
    39

    Sad....I used Playable to create my animation system...and it can't support legacy animation clip...this restriction makes my system less flexible.