Documentation

Unity Engine

Download Unity

Unity Engine

GetSharedComponent<T>(Entity)

Gets the value of a shared component of an entity.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static T GetSharedComponent<T>(Entity entity) where T : unmanaged, ISharedComponentData

Parameters

entity

The entity.

Returns

Type

Description

TThe shared component value.