Documentation

Unity Engine

Unity Engine

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

type

The type

Returns

Type

Description

ComponentTypeThe component type

ReadOnly(TypeIndex)

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

Parameters

typeIndex

The index

Returns

Type

Description

ComponentTypeThe 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

ComponentTypeThe component type