Ejemplo n.º 1
0
        private void DrawAnimationSetting(AseFileImporter importer, AseFileAnimationSettings setting)
        {
            if (setting.animationName == null)
            {
                return;
            }

            if (!foldoutStates.ContainsKey(setting.animationName))
            {
                foldoutStates.Add(setting.animationName, false);
            }

            EditorGUILayout.BeginVertical(GUI.skin.box);
            EditorGUI.indentLevel++;

            GUIStyle  foldoutStyle      = EditorStyles.foldout;
            FontStyle prevoiusFontStyle = foldoutStyle.fontStyle;

            foldoutStyle.fontStyle = FontStyle.Bold;

            if (foldoutStates[setting.animationName] = EditorGUILayout.Foldout(foldoutStates[setting.animationName],
                                                                               setting.animationName, true, foldoutStyle))
            {
                setting.loopTime = EditorGUILayout.Toggle("Loop", setting.loopTime);
                EditorGUILayout.HelpBox(setting.about, MessageType.None);
            }

            foldoutStyle.fontStyle = prevoiusFontStyle;

            EditorGUI.indentLevel--;
            EditorGUILayout.EndVertical();
        }
 private void ReloadEditor()
 {
     if (target is AseFileImporter fileImporter)
     {
         importer = fileImporter;
         editor   = importer.SelectedImporter.Editor;
         editor.Enable(this);
     }
 }
Ejemplo n.º 3
0
 public GeneratedTileImporter(AseFileImporter importer) : base(importer)
 {
 }