Skip to content

Instantly share code, notes, and snippets.

@bitinn
Created November 16, 2018 03:48
Show Gist options
  • Save bitinn/58bc53c9b567cdd3f27318756b78189d to your computer and use it in GitHub Desktop.
Save bitinn/58bc53c9b567cdd3f27318756b78189d to your computer and use it in GitHub Desktop.
Why doesn't LWRPCustomCameraEditor add a label?
using UnityEngine;
using UnityEditor;
using UnityEngine.Experimental.Rendering.LightweightPipeline;
using UnityEditor.Experimental.Rendering.LightweightPipeline;
//[CustomEditor(typeof(Camera))]
[CustomEditorForRenderPipeline(typeof(Camera), typeof(LightweightRenderPipelineAsset))]
//public class LWRPCustomCameraEditor : Editor {
public class LWRPCustomCameraEditor : CameraEditor {
public override void OnInspectorGUI () {
base.OnInspectorGUI();
GUILayout.Label("test");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment