Documentation

Unity Engine


Unity Engine


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
Warning
Removed. Use AddSharedComponent\<T\>
public bool AddUnmanagedSharedComponentData<T>(Entity entity, T componentData) where T : unmanaged, ISharedComponentData

Parameters

entity

The entity.

componentData

T
The shared component value to set.

Returns

Type

Description

boolReturns false if the entity already has the shared component. The shared component value is set either way.