Class DefaultVolumeProfileSettingsPropertyDrawer
Base implementation for drawing Default Volume Profile UI in Graphics Settings.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class DefaultVolumeProfileSettingsPropertyDrawer : PropertyDrawer
Fields
k_DefaultVolumeLabelWidth
Default Volume Profile label width
Declaration
protected const int k_DefaultVolumeLabelWidth = 260
Field Value
Type | Description |
---|---|
int |
m_DefaultVolumeProfileFoldoutExpanded
Foldout state
Declaration
protected EditorPrefBool m_DefaultVolumeProfileFoldoutExpanded
Field Value
Type | Description |
---|---|
EditorPrefBool |
m_EditorContainer
VisualElement containing the DefaultVolumeProfileEditor
Declaration
protected VisualElement m_EditorContainer
Field Value
Type | Description |
---|---|
VisualElement |
m_SettingsSerializedObject
SerializedObject representing the settings object
Declaration
protected SerializedObject m_SettingsSerializedObject
Field Value
Type | Description |
---|---|
SerializedObject |
m_VolumeProfileSerializedProperty
SerializedProperty representing the Default Volume Profile
Declaration
protected SerializedProperty m_VolumeProfileSerializedProperty
Field Value
Type | Description |
---|---|
SerializedProperty |
Properties
volumeInfoBoxLabel
Info box message
Declaration
protected abstract GUIContent volumeInfoBoxLabel { get; }
Property Value
Type | Description |
---|---|
GUIContent |
Methods
CreateAssetFieldUI()
Implementation of the Default Volume Profile asset field.
Declaration
protected abstract VisualElement CreateAssetFieldUI()
Returns
Type | Description |
---|---|
VisualElement | VisualElement containing the UI |
CreateDefaultVolumeProfileEditor()
Creates the Default Volume Profile editor.
Declaration
protected void CreateDefaultVolumeProfileEditor()
CreateHeader()
Creates the header for the Volume Profile editor.
Declaration
protected virtual VisualElement CreateHeader()
Returns
Type | Description |
---|---|
VisualElement | VisualElement containing the header. Null for no header. |
CreatePropertyGUI(SerializedProperty)
CreatePropertyGUI implementation.
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | Property to create UI for |
Returns
Type | Description |
---|---|
VisualElement | VisualElement containing the created UI |
Overrides
DestroyDefaultVolumeProfileEditor()
Destroys the Default Volume Profile editor.
Declaration
protected void DestroyDefaultVolumeProfileEditor()