Method WithComponentType
WithComponentType(IEnumerable<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<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<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.