EntityExtensions.Set_T1,T2_(thisEntity,T1,T2).md
March 31, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.EntityExtensions
EntityExtensions.Set<T1,T2>(this Entity, T1, T2) Method
Set the passed components on the entity.
public static void Set<T1,T2>(this Friflo.Engine.ECS.Entity entity, in T1 component1, in T2 component2)
where T1 : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType
where T2 : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;
Type parameters
T1
T2
Parameters
entity Entity
component1 T1
component2 T2
Exceptions
MissingComponentException
if the entity does not contain a passed component.