docs.unity.cn
    Show / Hide Table of Contents

    Class EnabledPropertyAttribute

    Draw a FoldoutWithEnabledButtonAttribute on a single line

    Inheritance
    Object
    Attribute
    PropertyAttribute
    FoldoutWithEnabledButtonAttribute
    EnabledPropertyAttribute
    Inherited Members
    FoldoutWithEnabledButtonAttribute.EnabledPropertyName
    PropertyAttribute.order
    Namespace: Unity.Cinemachine
    Syntax
    public sealed class EnabledPropertyAttribute : FoldoutWithEnabledButtonAttribute, _Attribute

    Constructors

    EnabledPropertyAttribute(String, String)

    Constructor

    Declaration
    public EnabledPropertyAttribute(string enabledProperty = "Enabled", string toggleText = "")
    Parameters
    Type Name Description
    String enabledProperty

    The name of the field controlling the enabled state

    String toggleText

    Text to display to the right of the toggle button

    Fields

    ToggleDisabledText

    Text to display to the right of the toggle button when disabled

    Declaration
    public string ToggleDisabledText
    Field Value
    Type Description
    String
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023