C# Class UnityEditor.Rendering.VolumeParameterDrawer

A base class to implement to draw custom editors for custom VolumeParameter. You must use a VolumeParameterDrawerAttribute to let the editor know which parameter this drawer is for.
If you do not provide a custom editor for a VolumeParameter, Unity uses the buil-in property drawers to draw the property as-is.
显示文件 Open project: m0nsky/hdrp_dxr_dlss

Public Methods

Method Description
IsAutoProperty ( ) : bool

Override this and return false if you want to customize the position of the override checkbox. If you don't, Unity automatically draws the checkbox and puts the property content in a horizontal scope.

OnGUI ( UnityEditor.Rendering.SerializedDataParameter parameter, GUIContent title ) : bool

Draws the parameter in the editor. If the input parameter is invalid you should return false so that Unity displays the default editor for this parameter.

Method Details

IsAutoProperty() public method

Override this and return false if you want to customize the position of the override checkbox. If you don't, Unity automatically draws the checkbox and puts the property content in a horizontal scope.
public IsAutoProperty ( ) : bool
return bool

OnGUI() public abstract method

Draws the parameter in the editor. If the input parameter is invalid you should return false so that Unity displays the default editor for this parameter.
public abstract OnGUI ( UnityEditor.Rendering.SerializedDataParameter parameter, GUIContent title ) : bool
parameter UnityEditor.Rendering.SerializedDataParameter The parameter to draw.
title GUIContent The label and tooltip of the parameter.
return bool