docs.unity.cn
    Show / Hide Table of Contents

    Struct VolumeComponentEditor.OverridablePropertyScope

    Scope for property that handle:

    • Layout decorator (Space, Header)
    • Naming decorator (Tooltips, InspectorName)
    • Overridable checkbox if parameter IsAutoProperty
    • disabled GUI if Overridable checkbox (case above) is unchecked
    • additional property scope This is automatically used inside PropertyField method
    Namespace: UnityEditor.Rendering
    Syntax
    protected struct OverridablePropertyScope : IDisposable

    Constructors

    OverridablePropertyScope(SerializedDataParameter, String, VolumeComponentEditor)

    Constructor

    Declaration
    public OverridablePropertyScope(SerializedDataParameter property, string label, VolumeComponentEditor editor)
    Parameters
    Type Name Description
    SerializedDataParameter property

    The property that will be drawn

    String label

    The label of this property

    VolumeComponentEditor editor

    The editor that will draw it

    OverridablePropertyScope(SerializedDataParameter, GUIContent, VolumeComponentEditor)

    Constructor

    Declaration
    public OverridablePropertyScope(SerializedDataParameter property, GUIContent label, VolumeComponentEditor editor)
    Parameters
    Type Name Description
    SerializedDataParameter property

    The property that will be drawn

    GUIContent label

    The label of this property

    VolumeComponentEditor editor

    The editor that will draw it

    Properties

    displayed

    Either the content property will be displayed or not (can varry with additional property settings)

    Declaration
    public bool displayed { get; }
    Property Value
    Type Description
    Boolean

    label

    The title modified regarding attribute used on the field

    Declaration
    public GUIContent label { get; }
    Property Value
    Type Description
    GUIContent

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 07 July 2023