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