/// <summary> /// Render the Mixed Reality Toolkit Logo. /// </summary> protected void RenderMRTKLogo() { // If we're being rendered as a sub profile, don't show the logo if (RenderAsSubProfile) { return; } MixedRealityEditorUtility.RenderMixedRealityToolkitLogo(); }
private void OnGUI() { windowScrollPosition = EditorGUILayout.BeginScrollView(windowScrollPosition); MixedRealityEditorUtility.RenderMixedRealityToolkitLogo(); // Render Title EditorGUILayout.LabelField("Mixed Reality Toolkit Optimize Window", BoldLargeTitle); EditorGUILayout.LabelField("This tool automates the process of updating your project, currently open scene, and material assets to recommended settings for Mixed Reality", EditorStyles.wordWrappedLabel); EditorGUILayout.Space(); PerfTarget = (PerformanceTarget)EditorGUILayout.Popup("Performance Target", (int)this.PerfTarget, PerformanceTargetEnums); EditorGUILayout.HelpBox(PerformanceTargetDescriptions[(int)PerfTarget], MessageType.Info); EditorGUILayout.Space(); if (!PlayerSettings.virtualRealitySupported) { EditorGUILayout.HelpBox("Current build target does not have virtual reality support enabled", MessageType.Warning); } selectedToolbarIndex = GUILayout.Toolbar(selectedToolbarIndex, ToolbarTitles); if (selectedToolbarIndex == 0) { RenderProjectOptimizations(); } else if (selectedToolbarIndex == 1) { RenderSceneOptimizations(); } else { RenderShaderOptimizations(); } EditorGUILayout.EndScrollView(); }