Esempio n. 1
0
        void UploadSummaryUpdate()
        {
            GUI.Label(steptitlerect, "STEP 8 - UPLOAD", "steptitle");
            GUI.Label(new Rect(30, 45, 440, 440), "Here is a final summary of what will be uploaded to <color=#8A9EB7FF>SceneExplorer</color>:", "boldlabel");

            int dynamicObjectCount = GetDynamicObjects.Length;

            GUI.Label(new Rect(30, 120, 440, 440), "You will be uploading <color=#62B4F3FF>" + dynamicObjectCount + "</color> Dynamic Objects", "label_disabledtext_large");

            string scenename = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;

            if (string.IsNullOrEmpty(scenename))
            {
                scenename = "SCENE NOT SAVED";
            }
            string settingsname = "Maximum Quality";

            if (qualityindex == 0)
            {
                settingsname = "Low Quality";
            }
            if (qualityindex == 1)
            {
                settingsname = "Medium Quality";
            }
            GUI.Label(new Rect(30, 150, 440, 440), "You will be uploading <color=#62B4F3FF>" + scenename + "</color> with <color=#62B4F3FF>" + settingsname + "</color>", "label_disabledtext_large");

            GUI.Label(new Rect(30, 200, 440, 440), "Your scene display image will be this:", "label_disabledtext_large");

            var sceneRT = EditorCore.GetSceneRenderTexture();

            if (sceneRT != null)
            {
                GUI.Box(new Rect(175, 230, 150, 150), sceneRT, "image_centeredboxed");
            }

            GUI.Label(new Rect(30, 390, 440, 440), "You can add <color=#8A9EB7FF>ExitPoll</color> surveys, update <color=#8A9EB7FF>Dynamic Objects</color>, and add user engagement scripts after this process is complete.", "normallabel");
        }