void OnGUI()
 {
     if (GUILayout.Button("Create"))
     {
         CreateAnimator.Import();
     }
 }
예제 #2
0
    void OnGUI()
    {
        selected = GUILayout.SelectionGrid(selected,
                                           array, 1, "PreferencesKeysElement");

        if (GUILayout.Button("OK"))
        {
            CreateAnimator.SetAnimationClipPath(selected);
            CreateAnimator.CreateAnimatorController();
            CreateAnimator.Load();
            CreateAnimator.SetAnimatorController();
            exampleWindow.Close();
        }
    }
예제 #3
0
    private void Awake()
    {
        CreateAnimator.FindAnimationClips();

        List <string> list       = CreateAnimator.FileList;
        List <string> listToShow = new List <string>();

        foreach (var item in list)
        {
            string filename = System.IO.Path.GetFileNameWithoutExtension(item);
            listToShow.Add(filename);
        }
        array = listToShow.ToArray();
        Debug.LogFormat("array: {0}", array);
    }
 static void Execute()
 {
     CreateAnimator.Import();
 }