docs.unity.cn
    Show / Hide Table of Contents

    Method Equals

    Equals(ComponentType)

    Checks if this component type has the same TypeIndex as the other component type.

    Declaration
    public bool Equals(ComponentType other)
    Parameters
    Type Name Description
    ComponentType other

    The other component type to compare to

    Returns
    Type Description
    Boolean

    True if the TypeIndex of both are equal

    Equals(Object)

    Checks to see if an object is equal to this component type.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed object")]
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to check

    Returns
    Type Description
    Boolean

    True if the object is a ComponentType and the object equals this component type

    Overrides
    ValueType.Equals(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023