public static MxMBlendSpaceWindow Inst() { if (m_inst == null) { m_inst = new MxMBlendSpaceWindow(); } return(m_inst); }
//=========================================================================================== /** * @brief * *********************************************************************************************/ public static void SetData(MxMBlendSpace a_data) { if (a_data == null) { return; } m_blendSpaceData = a_data; MxMBlendSpaceWindow.SetData(m_blendSpaceData); m_nextAnimType = EMxMAnimtype.BlendSpace; }
public static void ShowWindow() { m_compositeWindow = MxMAnimationClipCompositeWindow.Inst(); m_idleSetWindow = MxMAnimationIdleSetWindow.Inst(); m_blendSpaceWindow = MxMBlendSpaceWindow.Inst(); System.Type sceneType = System.Type.GetType("UnityEditor.SceneView, UnityEditor.dll"); System.Type gameType = System.Type.GetType("UnityEditor.GameView, UnityEditor.dll"); var dockTypes = new System.Type[] { typeof(MxMAnimationIdleSetWindow), typeof(MxMBlendSpaceWindow), sceneType, gameType }; EditorWindow editorWindow = EditorWindow.GetWindow <MxMAnimConfigWindow>("MxM Anim Config", true, dockTypes); editorWindow.minSize = new Vector2(100f, 50f); editorWindow.Show(); m_inst = (MxMAnimConfigWindow)editorWindow; MxMTaggingWindow.ShowWindow(); }