AddUnmanagedSharedComponentData<T>(Entity, T)
Obsolete. Use EntityManager.AddSharedComponent instead.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public bool AddUnmanagedSharedComponentData<T>(Entity entity, T componentData) where T : unmanaged, ISharedComponentData
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns false if the entity already has the shared component. The shared component value is set either way. |