GetExistingSystem
Return a handle to an existing instance of a system of type T in this World.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetExistingSystem<T>()
Return a handle to an existing instance of a system of type in this World.
Tpublic SystemHandle GetExistingSystem<T>() where T : ComponentSystemBase
Returns
Type | Description |
|---|---|
| SystemHandle | A handle to the existing instance of system type |
GetExistingSystem(Type)
Return a handle to an existing instance of a system of type in this World. Prefer the version that takes a SystemTypeIndex where possible to avoid unnecessary reflection.
typepublic SystemHandle GetExistingSystem(Type type)
Parameters
The system type
Returns
Type | Description |
|---|---|
| SystemHandle | A handle to the existing instance of system type |
GetExistingSystem(SystemTypeIndex)
Return a handle to an existing instance of a system of type in this World. This version avoids unnecessary reflection.
typepublic SystemHandle GetExistingSystem(SystemTypeIndex type)
Parameters
The system type
Returns
Type | Description |
|---|---|
| SystemHandle | A handle to the existing instance of system type |