docs.unity.cn
    Show / Hide Table of Contents

    Operator LessThan

    LessThan(ComponentType, ComponentType)

    Evaluates if one component type is less than the the other first by TypeIndex, then by ComponentType.AccessMode.

    Declaration
    public static bool operator <(ComponentType lhs, ComponentType rhs)
    Parameters
    Type Name Description
    ComponentType lhs

    The left-hand side

    ComponentType rhs

    The right-hand side

    Returns
    Type Description
    Boolean

    True if the left-hand side's TypeIndex is less than the right-hand side's. If the type indices match, the AccessModeType is used.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023