docs.unity.cn
    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
    EntitiesJournaling.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
    EntitiesJournaling.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
    EntitiesJournaling.RecordView[]

    Array of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

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