Method AddUnmanagedSharedComponentData
AddUnmanagedSharedComponentData<T>(Entity, T)
Obsolete. Use AddSharedComponent<T>(Entity, T) instead.
Declaration
[Obsolete("Use AddSharedComponent<T> (UnityUpgradable) -> AddSharedComponent<T>(*)", true)]
public bool AddUnmanagedSharedComponentData<T>(Entity entity, T componentData) where T : unmanaged, ISharedComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| Entity | entity | The entity. | 
| T | componentData | The shared component value to set. | 
Returns
| Type | Description | 
|---|---|
| bool | Returns false if the entity already has the shared component. The shared component value is set either way. | 
Type Parameters
| Name | Description | 
|---|---|
| T | The shared component type. |