Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question AnimationClip creation in runtime.

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

  1. Hecocos

    Hecocos

    Joined:
    Nov 29, 2021
    Posts:
    11
    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,485
    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:
    11

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