docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithComponentType

    WithComponentType(string)

    Get all records matching a component type name.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static EntitiesJournaling.RecordView[] WithComponentType(string name)
    Parameters
    Type Name Description
    string name

    The component type name.

    Returns
    Type Description
    RecordView[]

    Array of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

    WithComponentType(ComponentType)

    Get all records matching a component type.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static EntitiesJournaling.RecordView[] WithComponentType(ComponentType componentType)
    Parameters
    Type Name Description
    ComponentType componentType
    Returns
    Type Description
    RecordView[]

    Array of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

    WithComponentType(TypeIndex)

    Get all records matching a component type index.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static EntitiesJournaling.RecordView[] WithComponentType(TypeIndex typeIndex)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    The component type index.

    Returns
    Type Description
    RecordView[]

    Array of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

    In This Article
    • WithComponentType(string)
    • WithComponentType(ComponentType)
    • WithComponentType(TypeIndex)
    Back to top
    Copyright © 2024 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)