docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeManager

    Inheritance
    Object
    TypeManager
    Namespace: Unity.Entities
    Syntax
    public static class TypeManager : object

    Fields

    Name Description
    BufferComponentTypeFlag
    ChunkComponentTypeFlag
    ClearFlagsMask
    DefaultBufferCapacityNumerator

    BufferCapacity is by default calculated as DefaultBufferCapacityNumerator / sizeof(BufferElementDataType) thus for a 1 byte component, the maximum number of elements possible to be stored in chunk memory before the buffer is allocated separately from chunk data, is DefaultBufferCapacityNumerator elements. For a 2 byte sized component, (DefaultBufferCapacityNumerator / 2) elements can be stored, etc...

    HasNoEntityReferencesFlag
    ManagedComponentTypeFlag
    ManagedSharedComponentTypeFlag
    MaximumChunkCapacity
    MaximumSupportedAlignment
    MaximumTypesCount
    ObjectOffset
    SharedComponentTypeFlag
    SystemStateSharedComponentTypeFlag
    SystemStateTypeFlag
    ZeroSizeInChunkTypeFlag

    Properties

    Name Description
    AllTypes

    Methods

    Name Description
    CheckIsAllowedAsComponentData(Type, String)
    CheckIsAllowedAsManagedComponentData(Type, String)
    ConstructComponentFromBuffer(Int32, Void*)
    ConstructSystem(Type)

    Construct a System from a Type. Uses the same list in GetSystems()

    ConstructSystem<T>()
    ConstructSystem<T>(Type)
    Equals(Object, Object, Int32)
    Equals(Object, Void*, Int32)
    Equals(Void*, Void*, Int32)
    Equals<T>(ref T, ref T)
    GetAllTypes()
    GetEntityOffsets(Int32, out Int32)

    Note this function will always return a pointer even if the given type has no Entity offsets. Always check/iterate over the returned pointer using the returned count

    GetFastEqualityTypeInfo(TypeManager.TypeInfo)
    GetHashCode(Object, Int32)
    GetHashCode(Void*, Int32)
    GetHashCode<T>(ref T)
    GetSystemAttributes(Type, Type)

    Get all the attribute objects of Type attributeType for a System.

    GetSystemName(Type)
    GetSystems(WorldSystemFilterFlags, WorldSystemFilterFlags)

    Return an array of all System types available to the runtime matching the WorldSystemFilterFlags. By default, all systems available to the runtime is returned.

    GetType(Int32)
    GetTypeCount()
    GetTypeIndex(Type)
    GetTypeIndex<T>()
    GetTypeIndexFromStableTypeHash(UInt64)
    GetTypeInfo(Int32)
    GetTypeInfo<T>()
    GetWriteGroupTypes(Int32)
    HasEntityReferences(Int32)
    Initialize()

    Initializes the TypeManager with all ECS type information. May be called multiple times; only the first call will do any work. Always must be called from the main thread.

    IsAssemblyReferencingEntities(Assembly)
    IsBuffer(Int32)
    IsChunkComponent(Int32)
    IsManagedComponent(Int32)
    IsManagedSharedComponent(Int32)
    IsManagedType(Int32)
    IsSharedComponentType(Int32)
    IsSystemAGroup(Type)
    IsSystemStateComponent(Int32)
    IsSystemStateSharedComponent(Int32)
    IsSystemType(Type)
    IsZeroSized(Int32)
    MakeChunkComponentTypeIndex(Int32)
    RegisterUnityEngineObjectType(Type)
    Shutdown()

    Removes all ECS type information and any allocated memory. May only be called once globally, and must be called from the main thread.

    ThrowOnDisallowedComponentData(Type, Type, String)
    ThrowOnDisallowedManagedComponentData(Type, Type, String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023