docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSystemAttributes

    GetSystemAttributes(SystemTypeIndex, SystemAttributeKind, Allocator)

    Obtains a list containing the SystemAttributes for a system. This allows for 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 target SystemAttributeKind.

    Allocator allocator

    Allocator used to create the returned NativeList.

    Returns
    Type Description
    NativeList<TypeManager.SystemAttribute>

    A NativeList of SystemAttributes.

    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)