Exemple #1
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button(TutorialWindowMenuItem.Item))
            {
                TutorialWindow.CreateWindowAndLoadLayout();
            }

            if (k_IsAuthoringMode)
            {
                base.OnInspectorGUI();
            }
        }
        /// <summary>
        /// Shows Tutorials window using the currently specified behaviour:
        /// - if TutorialContainer exists and TutorialContainer.ProjectLayout is specified,
        ///   the window is loaded and shown using the specified window layout (old behaviour), or
        /// - else the window is shown by anchoring and docking next to the Inspector (new behaviour).
        /// </summary>
        public static void ShowTutorialWindow()
        {
            var readme = TutorialWindow.FindReadme();

            if (readme == null || readme.ProjectLayout == null)
            {
                TutorialWindow.CreateNextToInspector();
            }
            else if (readme.ProjectLayout != null)
            {
                TutorialWindow.CreateWindowAndLoadLayout();
            }
        }
 static void OpenTutorialWindow()
 {
     TutorialWindow.CreateWindowAndLoadLayout();
 }