EntityUtils.md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
EntityUtils Class
public static class EntityUtils
Inheritance System.Object ๐ก EntityUtils
| Fields | |
|---|---|
| EqualityComparer |
| Methods | |
|---|---|
| AddEntityComponent(Entity, ComponentType) | |
| AddEntityComponentValue(Entity, ComponentType, object) | |
| AddEntityScript(Entity, Script) | |
| AddNewEntityScript(Entity, ScriptType) | |
| GetEntityComponent(Entity, ComponentType) | Returns a copy of the entity component as an object. The returned IComponent is a boxed struct. So avoid using this method whenever possible. Use GetComponent<T>() instead. |
| GetEntityScript(Entity, ScriptType) | |
| RemoveEntityComponent(Entity, ComponentType) | |
| RemoveEntityScript(Entity, ScriptType) |