UnityEditor.EditorUtility.DisplayDialog C# (CSharp) Method

DisplayDialog() private method

private DisplayDialog ( string title, string message, string ok ) : bool
title string
message string
ok string
return bool
        public static bool DisplayDialog(string title, string message, string ok)
        {
            string cancel = "";
            return DisplayDialog(title, message, ok, cancel);
        }

Same methods

EditorUtility::DisplayDialog ( string title, string message, string ok, [ cancel ) : bool

Usage Example

Example #1
0
        private void DrawSupport()
        {
            DrawInputWithLabel("Bolt Support", () =>
            {
                GUILayout.BeginVertical();
                GUILayout.Space(5);
                GUILayout.Label(BoltWizardText.SUPPORT, textLabel);
                GUILayout.EndVertical();
            }, false);
            GUILayout.Space(15);

            DrawStepOption(discordIcon, discordHeader, discordText,
                           callback: OpenURL("https://discord.gg/0ya6ZpOvnShSCtbb"));
            DrawStepOption(bugtrackerIcon, bugtrackerHeader, bugtrackerText,
                           callback: OpenURL("https://github.com/BoltEngine/Bolt-Tracker"));
            DrawStepOption(documentationIcon, documentationHeader, documentationText,
                           callback: OpenURL("https://doc.photonengine.com/en-us/bolt/current/setup/overview"));
            DrawStepOption(reviewIcon, reviewHeader, reviewText,
                           callback: OpenURL("https://assetstore.unity.com/packages/tools/network/photon-bolt-free-127156"));

            // Action

            if (beforeNextCallback == null)
            {
                beforeNextCallback = () =>
                {
                    RunCompiler = EditorUtility.DisplayDialog(BoltWizardText.FINISH_TITLE, BoltWizardText.FINISH_QUESTION,
                                                              "Yes", "No");
                    return(true);
                };
            }
        }
All Usage Examples Of UnityEditor.EditorUtility::DisplayDialog
EditorUtility