docs.unity3d.com
    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

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023