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.

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,165
    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