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
defaultVolumeProfileAssetLabel
Label and tooltip used for the Default Volume Profile asset field.
Declaration
protected abstract GUIContent defaultVolumeProfileAssetLabel { get; }
Property Value
| Type | Description |
|---|---|
| GUIContent |
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()
DrawDefaultVolumeObjectField<TRenderPipeline, TDefaultVolumeSettings>(TDefaultVolumeSettings)
Draw ObjectField for Default Volume.
Declaration
protected VisualElement DrawDefaultVolumeObjectField<TRenderPipeline, TDefaultVolumeSettings>(TDefaultVolumeSettings defaultVolumeProfileSettings = null) where TRenderPipeline : RenderPipeline where TDefaultVolumeSettings : class, IDefaultVolumeProfileSettings
Parameters
| Type | Name | Description |
|---|---|---|
| TDefaultVolumeSettings | defaultVolumeProfileSettings | Default value source if available |
Returns
| Type | Description |
|---|---|
| VisualElement | New Object Field |
Type Parameters
| Name | Description |
|---|---|
| TRenderPipeline | Render Pipeline type for Default Volume |
| TDefaultVolumeSettings | Default Volume settings container type |