ComponentChanged.Component_T_().md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.ComponentChanged
ComponentChanged.Component() Method
Returns the current component value after executing the Add
or Update component.
public T Component<T>()
where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;
Type parameters
T
The component type of the changed component.
Returns
Exceptions
System.InvalidOperationException
In case the Action was Remove component.
System.ArgumentException
In case the component is accessed with the wrong generic type.