Search Unity

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