Documentation

Unity Engine


Unity Engine


GetSharedComponentTypeHandle<T>()

Manually gets the run-time type information required to access a shared component data in a chunk.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>() where T : struct, ISharedComponentData

Returns

Type

Description

SharedComponentTypeHandle<T>An object representing the type information required to safely access shared component data stored in a chunk.

Remarks

Prefer using SystemAPI.GetSharedComponentTypeHandle in SystemAPI as it will cache in OnCreate for you and call .Update(this) at the call-site.