void OnGUI()
        {
            // Set up the vertical scroll
            EditorGUILayout.BeginVertical();

            // Update the scroll position
            scrollPos =
                EditorGUILayout.BeginScrollView(scrollPos);

            // Enable word wrap and rich text
            EditorStyles.label.wordWrap = true;
            EditorStyles.label.richText = true;

            // Display welcome message
            EditorGUILayout.LabelField(welcomeMessage);

            EditorGUILayout.Separator();

            // Display how to use text
            EditorGUILayout.LabelField("<b>How To Use</b>");
            EditorGUILayout.LabelField(howToUseMessage);

            EditorGUILayout.Separator();

            // Display settings text
            EditorGUILayout.LabelField("<b>Settings</b>");
            EditorGUILayout.LabelField(settingsMessage);

            EditorGUILayout.Separator();

            // Display contact text
            EditorGUILayout.LabelField("<b>Contact</b>");
            EditorGUILayout.LabelField(contactMessage);

            EditorGUILayout.Separator();

            // End scroll view and vertical scroll
            EditorGUILayout.EndScrollView();
            EditorGUILayout.EndVertical();

            // Display and check if open wiki button pressed
            if (GUILayout.Button("Open Wiki"))
            {
                // Open wiki link
                ScreenCapLinks.OpenWiki();
            }

            // Display and check if open docs button pressed
            if (GUILayout.Button("Open Documentation"))
            {
                // Open docs link
                ScreenCapLinks.OpenDocumentation();
            }
        }
예제 #2
0
        public void OpenDocs()
        {
#if UNITY_EDITOR
            ScreenCapLinks.OpenDocumentation(); // If in editor open documentation webpage
#endif
        }