Search Unity

Generate animation clip in the model import setting through editor script

Discussion in 'Scripting' started by Tsequier, Feb 13, 2020.

  1. Tsequier

    Tsequier

    Joined:
    Apr 20, 2016
    Posts:
    19
    Hello!
    I am trying to generate animation clip in the model import setting, similar to what is doable by pressing the '+' circled in red in the linked image, but through script or editor script. Is it even accessible and possible by script?
    Thanks!
    Capture.PNG
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,696
    Create animation clip, setup all curves you want, and save it as subasset into that file.
     
    Tsequier likes this.
  3. Tsequier

    Tsequier

    Joined:
    Apr 20, 2016
    Posts:
    19
    Thanks @palex-nx ! It doesn't seems to be possible to add a subasset into a model import. I am still looking into it, but if you have done it in the past I would love some more help on the subject!
     
  4. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,696
unityunity