Ejemplo n.º 1
0
        static void Init()
        {
            addActionsMenuProperties = null;
            HGL_WindowClipMakerEditor wnd = GetWindow <HGL_WindowClipMakerEditor>("Clip Maker");

            wnd.Show();
        }
Ejemplo n.º 2
0
 public override void OnInspectorGUI()
 {
     EditorGUILayout.BeginHorizontal();
     GUILayout.FlexibleSpace();
     EditorGUILayout.BeginVertical();
     if (GUILayout.Button("Open in window clip maker"))
     {
         HGL_WindowClipMakerEditor.Open(m_target);
     }
     if (m_target.AnimationProperty == null)
     {
         GUILayout.Label("Properties doesn't exist");
     }
     else
     {
         GUILayout.Label(string.Format("Count properties: {0}", m_target.AnimationProperty.Count));
     }
     GUILayout.Label(string.Format("Time duration : {0}", m_target.TimeDuration));
     EditorGUILayout.EndVertical();
     GUILayout.FlexibleSpace();
     EditorGUILayout.EndHorizontal();
 }