EntityStoreBase.GetUniqueEntity(string).md

July 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.EntityStoreBase

EntityStoreBase.GetUniqueEntity(string) Method

Return the entity with a UniqueEntity component and its uid == uid.
See Example.

public Friflo.Engine.ECS.Entity GetUniqueEntity(string uid);

Parameters

uid System.String

Returns

Entity

Exceptions

System.InvalidOperationException
In case none or more than one UniqueEntity with the given uid found.

Remarks

To Get all UniqueEntity's of the store use UniqueEntities.