Documentation

Unity Engine


Unity Engine


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

ComponentTypeThe 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

type

The type

Returns

Type

Description

ComponentTypeThe component type

ReadWrite(TypeIndex)

Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the typeIndex.
public static ComponentType ReadWrite(TypeIndex typeIndex)

Parameters

typeIndex

The index

Returns

Type

Description

ComponentTypeThe component type