Skip to content

Instantly share code, notes, and snippets.

@rngtm
Created July 9, 2018 06:21
Show Gist options
  • Select an option

  • Save rngtm/6e78524280f40b770c020825fc273105 to your computer and use it in GitHub Desktop.

Select an option

Save rngtm/6e78524280f40b770c020825fc273105 to your computer and use it in GitHub Desktop.
AssetPipeline系アセットのInspectorにGraphicsを開くボタンを表示するエディター拡張スクリプト
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