Method AddComponent
AddComponent<T>(EntityCommandBuffer, Entity, T)
Declaration
public static void AddComponent<T>(this EntityCommandBuffer ecb, Entity e, T component)
where T : class, IComponentData
Parameters
Type | Name | Description |
---|---|---|
EntityCommandBuffer | ecb | |
Entity | e | |
T | component |
Type Parameters
Name | Description |
---|---|
T |
AddComponent<T>(EntityCommandBuffer, Entity)
Declaration
public static void AddComponent<T>(this EntityCommandBuffer ecb, Entity e)
where T : class, IComponentData
Parameters
Type | Name | Description |
---|---|---|
EntityCommandBuffer | ecb | |
Entity | e |
Type Parameters
Name | Description |
---|---|
T |