docs.unity.cn
    Show / Hide Table of Contents

    Struct AspectType

    Native friendly container for managed Type derived from IAspect.

    Namespace: Unity.Entities
    Syntax
    public struct AspectType : IEquatable<AspectType>

    Constructors

    Name Description
    AspectType(Type)

    Create an AspectType from a managed Type.

    Fields

    Name Description
    TypeIndex

    The type index of the aspect in the TypeManager.

    Methods

    Name Description
    Equals(Object)

    Test if this object is equal to another object

    Equals(AspectType)

    Test if this AspectType is equal to another AspectType

    FromTypeIndex(Int32)

    Create an AspectType from a type index.

    GetHashCode()

    Get hash code for this AspectType

    GetManagedType()

    Retrieve the managed Type.

    ToString()

    Name of the aspect type

    Operators

    Name Description
    Equality(AspectType, AspectType)

    Operator equal by type index

    GreaterThan(AspectType, AspectType)

    Operator greater-than by type index

    Implicit(Type to AspectType)

    Implicit conversion from managed Type to AspectType.

    Inequality(AspectType, AspectType)

    Operator not-equal by type index

    LessThan(AspectType, AspectType)

    Operator less-than by type index

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023