Documentation

Unity Engine


Unity Engine


GetChunkComponentData<T>(ref ComponentTypeHandle<T>)

Gets the value of a chunk component.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetChunkComponentData<T>(ComponentTypeHandle<T>)

public readonly T GetChunkComponentData<T>(ref ComponentTypeHandle<T> typeHandle) where T : struct

Parameters

An object containing type and job safety information. To create this object, call ComponentSystemBase.GetComponentTypeHandle. Pass the object to a job using a public field you define as part of the job struct.

Returns

Type

Description

TA copy of the chunk component.

Remarks