GetSharedComponent<T>(Entity)
Gets the value of a shared component of an entity.
読み終わるまでの所要時間 1 分最終更新 9日前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static T GetSharedComponent<T>(Entity entity) where T : unmanaged, ISharedComponentData
Parameters
The entity.
Returns
Type | Description |
|---|---|
| T | The shared component value. |