UniqueEntity.md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
UniqueEntity Struct
A UniqueEntity is used to assign a unique string to an entity within an EntityStore.
public struct UniqueEntity :
Friflo.Engine.ECS.IComponent
Implements IComponent
Remarks
To find a UniqueEntity within an EntityStore use GetUniqueEntity(string).
It basically acts as a singleton within an EntityStore.
| Constructors | |
|---|---|
| UniqueEntity(string) |
| Fields | |
|---|---|
| uid | Unique string identifier assigned to specific Entity |
| Methods | |
|---|---|
| ToString() |