docs.unity.cn
    Show / Hide Table of Contents

    Method WithComponentType

    WithComponentType(IEnumerable<EntitiesJournaling.RecordView>, String)

    Get all records matching a component type name.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static IEnumerable<EntitiesJournaling.RecordView> WithComponentType(this IEnumerable<EntitiesJournaling.RecordView> records, string name)
    Parameters
    Type Name Description
    IEnumerable<EntitiesJournaling.RecordView> records
    String name

    The component type name.

    Returns
    Type Description
    IEnumerable<EntitiesJournaling.RecordView>

    IEnumerable of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

    WithComponentType(IEnumerable<EntitiesJournaling.RecordView>, ComponentType)

    Get all records matching a component type.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static IEnumerable<EntitiesJournaling.RecordView> WithComponentType(this IEnumerable<EntitiesJournaling.RecordView> records, ComponentType componentType)
    Parameters
    Type Name Description
    IEnumerable<EntitiesJournaling.RecordView> records
    ComponentType componentType
    Returns
    Type Description
    IEnumerable<EntitiesJournaling.RecordView>

    IEnumerable of EntitiesJournaling.RecordView.

    Remarks

    Throws InvalidOperationException if records are currently locked for write.

    WithComponentType(IEnumerable<EntitiesJournaling.RecordView>, TypeIndex)

    Get all records matching a component type index.

    Declaration
    [ExcludeFromBurstCompatTesting("LINQ")]
    public static IEnumerable<EntitiesJournaling.RecordView> WithComponentType(this IEnumerable<EntitiesJournaling.RecordView> records, TypeIndex typeIndex)
    Parameters
    Type Name Description
    IEnumerable<EntitiesJournaling.RecordView> records
    TypeIndex typeIndex

    The component type index.

    Returns
    Type Description
    IEnumerable<EntitiesJournaling.RecordView>

    IEnumerable 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, June 21, 2023