コード例 #1
0
 private static void OnPlaymodeStateChanged()
 {
     if (isPlaying ^ EditorApplication.isPlaying)
     {
         isPlaying = EditorApplication.isPlaying;
         EditorApp.OnPlayModeChanged(isPlaying);
     }
 }
コード例 #2
0
        private static EditorApp s_editorInstance; // keep another reference to avoid casts

        #endregion Fields

        #region Constructors

        static EditorApp()
        {
            EditorApp editorApp = new EditorApp();
            s_sharedInstance = editorApp;
            s_editorInstance = editorApp;
            editorApp.Start();

            s_urlHandlers = CreateURLHandlersLookup();
        }
コード例 #3
0
        static EditorApp()
        {
            EditorApp editorApp = new EditorApp();

            s_sharedInstance = editorApp;
            s_editorInstance = editorApp;
            editorApp.Start();

            s_urlHandlers = CreateURLHandlersLookup();
        }
コード例 #4
0
        protected override void DrawGUI()
        {
            BeginGroup(Frame);
            {
                if (GUI.Button(this.Bounds, m_content, this.Style))
                {
                    EditorApp.HandleURL(m_href);
                }
            }
            EndGroup();

            #if !(UNITY_4_7 || UNITY_4_6 || UNITY_4_5 || UNITY_4_4 || UNITY_4_3 || UNITY_4_2 || UNITY_4_1 || UNITY_4)
            Rect linkFrame = this.Frame;
            linkFrame.height = this.Style.font.ascent;
            UIHelper.DrawUnderLine(linkFrame, this.Style.normal.textColor);
            #endif
        }
コード例 #5
0
        //////////////////////////////////////////////////////////////////////////////

        #region ITerminalCompositeViewDelegate

        public void ExecCommand(string commandLine)
        {
            EditorApp.ExecCommand(commandLine, true);
        }