ReadWrite
Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the generic type T.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
ReadWrite<T>()
Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the generic type T.
public static ComponentType ReadWrite<T>()
Returns
Type | Description |
|---|---|
| ComponentType | The component type |
ReadWrite(Type)
Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the type.
[ExcludeFromBurstCompatTesting("Takes a managed Type")]public static ComponentType ReadWrite(Type type)
Parameters
The type
Returns
Type | Description |
|---|---|
| ComponentType | The component type |
ReadWrite(TypeIndex)
Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the typeIndex.
public static ComponentType ReadWrite(TypeIndex typeIndex)
Parameters
The index
Returns
Type | Description |
|---|---|
| ComponentType | The component type |