docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSystemAttributes

    GetSystemAttributes(SystemTypeIndex, SystemAttributeKind, Allocator)

    Obtains a list containing the SystemAttributes of a specific kind for a system. This allows for burstable access to the attributes which were put on the system.

    Declaration
    public static NativeList<TypeManager.SystemAttribute> GetSystemAttributes(SystemTypeIndex systemTypeIndex, TypeManager.SystemAttributeKind kind, Allocator allocator = Allocator.Temp)
    Parameters
    Type Name Description
    SystemTypeIndex systemTypeIndex

    The SystemTypeIndex for the system.

    TypeManager.SystemAttributeKind kind

    The SystemAttributeKind of attributes to gather.

    Allocator allocator

    Allocator used to create the returned NativeList.

    Returns
    Type Description
    NativeList<TypeManager.SystemAttribute>

    A NativeList of SystemAttributes.

    Remarks

    This gets the same information as reflecting to get the attributes on the system and filtering for a specific kind, except that it uses pre-generated information and is burstable.

    GetSystemAttributes(Type, Type)

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

    Declaration
    public static Attribute[] GetSystemAttributes(Type systemType, Type attributeType)
    Parameters
    Type Name Description
    Type systemType

    System type

    Type attributeType

    Attribute type to return

    Returns
    Type Description
    Attribute[]

    Returns all attributes of type attributeType decorating systemType

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)