Returns all unique relations of the passed entity.
Executes in O(1). In case TRelation is a ILinkRelation it returns all linked entities.
public static Friflo.Engine.ECS.Relations<TRelation> GetRelations<TRelation>(this Friflo.Engine.ECS.Entity entity)
where TRelation : struct, Friflo.Engine.ECS.IRelation, System.ValueType, System.ValueType;
TRelation
entity
Entity
Friflo.Engine.ECS.Relations<TRelation>
System.NullReferenceException
If the entity is null.