Class RelativePropertiesDrawer
Custom property drawer that renders automatically a set of properties of a given object
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
PropertyDrawer.preferredLabel
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class RelativePropertiesDrawer : PropertyDrawer
Properties
relativePropertiesNames
The set of properties to draw the default UnityEditor.PropertyDrawer.
Declaration
protected abstract string[] relativePropertiesNames { get; }
Property Value
Type | Description |
---|---|
string[] |
Methods
CreatePropertyGUI(SerializedProperty)
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property |
Returns
Type | Description |
---|---|
VisualElement |
Overrides
UnityEditor.PropertyDrawer.CreatePropertyGUI(UnityEditor.SerializedProperty)
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | |
GUIContent | label |
Returns
Type | Description |
---|---|
float |
Overrides
UnityEditor.PropertyDrawer.GetPropertyHeight(UnityEditor.SerializedProperty, UnityEngine.GUIContent)
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | |
SerializedProperty | property | |
GUIContent | label |
Overrides
UnityEditor.PropertyDrawer.OnGUI(UnityEngine.Rect, UnityEditor.SerializedProperty, UnityEngine.GUIContent)