RelationExtensions.RemoveRelation_TRelation_(thisEntity,Entity).md
November 22, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.RelationExtensions
RelationExtensions.RemoveRelation(this Entity, Entity) Method
Removes the specified link relation target from an entity.
Executes in O(N) N: number of link relations of the specified entity.
public static bool RemoveRelation<TRelation>(this Friflo.Engine.ECS.Entity entity, Friflo.Engine.ECS.Entity target)
where TRelation : struct, Friflo.Engine.ECS.ILinkRelation, System.ValueType, System.ValueType;
Type parameters
TRelation
Parameters
entity Entity
target Entity
Returns
System.Boolean
true if the entity contained a link relation of the given type before.
Exceptions
System.NullReferenceException
If the entity is null.