docs.unity.cn
    Show / Hide Table of Contents

    Class HideIfNoComponentAttribute

    Hide this property if a component of a given type is not present

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

    Constructors

    HideIfNoComponentAttribute(Type)

    Constructor

    Declaration
    public HideIfNoComponentAttribute(Type type)
    Parameters
    Type Name Description
    Type type

    Type of the component to check for

    Fields

    ComponentType

    The name of the field controlling the enabled state

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