Documentation

Unity Engine

Unity Engine

GetEntityDataPtrRO(EntityTypeHandle)

Provides an unsafe read-only interface to array of Entities stored in this chunk.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public readonly Entity* GetEntityDataPtrRO(EntityTypeHandle entityTypeHandle)

Parameters

entityTypeHandle

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

Returns

Type

Description

Entity*A pointer to the component data stored in the chunk.