Created
July 9, 2018 06:21
-
-
Save rngtm/6e78524280f40b770c020825fc273105 to your computer and use it in GitHub Desktop.
AssetPipeline系アセットのInspectorにGraphicsを開くボタンを表示するエディター拡張スクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace UnityEngine.Experimental.Rendering | |
| { | |
| using UnityEngine; | |
| using UnityEditor; | |
| [CustomEditor(typeof(RenderPipelineAsset), true)] | |
| public class AssetPipelineInspector : Editor | |
| { | |
| public override void OnInspectorGUI() | |
| { | |
| if (GUILayout.Button("Open Graphics Settings")) | |
| { | |
| // Project SettingsのGraphicsを開く | |
| EditorApplication.ExecuteMenuItem("Edit/Project Settings/Graphics"); | |
| } | |
| base.OnInspectorGUI(); | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment