Struct Extensions_Collections.SetItemsCountJob<TItem>
Sets a count of items in a collection. If collection is smaller than count, it will add items to the collection. If collection is larger than count, it will remove items from the collection.
Implements
IJob
Inherited Members
Namespace: Fwt.Core
Assembly: fwt.core.dll
Syntax
public struct Extensions_Collections.SetItemsCountJob<TItem> : IJob where TItem : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TItem | Type of items in the collection |
Fields
Count
Target count of items in the collection
Declaration
public int Count
Field Value
| Type | Description |
|---|---|
| int |
DefaultValue
Default value to put in every cell if collection is smaller than count
Declaration
public TItem DefaultValue
Field Value
| Type | Description |
|---|---|
| TItem |
Items
Collection to set a count of items
Declaration
[WriteOnly]
public NativeList<TItem> Items
Field Value
| Type | Description |
|---|---|
| NativeList<TItem> |
Methods
Execute()
Implement this method to perform work on a worker thread.
Declaration
public void Execute()
Implements
Unity.Jobs.IJob