1
This commit is contained in:
43
Assets/Plugins/_MK/MKGlow/Editor/Common.cs
Normal file
43
Assets/Plugins/_MK/MKGlow/Editor/Common.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
//////////////////////////////////////////////////////
|
||||
// MK Install Wizard Configuration //
|
||||
// //
|
||||
// Created by Michael Kremmel //
|
||||
// www.michaelkremmel.de //
|
||||
// Copyright © 2021 All rights reserved. //
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
#if UNITY_EDITOR
|
||||
namespace MK.Glow.Editor.InstallWizard
|
||||
{
|
||||
public enum RenderPipeline
|
||||
{
|
||||
[UnityEngine.InspectorName("Built-in Legacy")]
|
||||
Built_in_Legacy = 0,
|
||||
[UnityEngine.InspectorName("Built-in + Post Processing Stack")]
|
||||
Built_in_PostProcessingStack = 1,
|
||||
//Lightweight = 2,
|
||||
[UnityEngine.InspectorName("Universal 3D")]
|
||||
Universal3D = 2,
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
[UnityEngine.InspectorName("Universal 2D")]
|
||||
Universal2D = 3,
|
||||
#endif
|
||||
[UnityEngine.InspectorName("High Definition")]
|
||||
High_Definition = 4
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class ExampleContainer
|
||||
{
|
||||
public string name = "";
|
||||
public UnityEngine.Object scene = null;
|
||||
public UnityEngine.Texture2D icon = null;
|
||||
|
||||
public void DrawEditorButton()
|
||||
{
|
||||
if(UnityEngine.GUILayout.Button(icon, UnityEngine.GUILayout.Width(64), UnityEngine.GUILayout.Height(64)))
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(UnityEditor.AssetDatabase.GetAssetOrScenePath(scene));
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user