Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

UI Adding Animation as children to AnimatorController

Discussion in 'UGUI & TextMesh Pro' started by Spy-Shifty, Aug 22, 2014.

  1. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    When you generate an animator from ui buttons, the animations of this animator are children of it.
    How can I add my own animations as children to the animator
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    hi, you can do this with code by using the AssetDatabase.
    AssetDatabase.AddObjectToAsset ();
     
    Spy-Shifty and rakkarage like this.
  3. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    Ok many thx