AddUnmanagedSharedComponentData<T>(Entity, T)
Obsolete. Use EntityManager.AddSharedComponent instead.
Read time 1 minuteLast updated 3 days ago
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. |