EntityData.Get_T_().md
July 31, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.EntityData
EntityData.Get() Method
Return the component of the given type as a reference.
public ref T Get<T>()
where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;
Type parameters
T
Returns
Exceptions
System.NullReferenceException
if the entity is deleted or has no component of Type T
Remarks
Executes in O(1)