GetExistingUnmanagedSystem
Return an existing instance of a system of type T in this World.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetExistingUnmanagedSystem<T>()
Return an existing instance of a system of type in this World.
Tpublic SystemHandle GetExistingUnmanagedSystem<T>() where T : unmanaged, ISystem
Returns
Type | Description |
|---|---|
| SystemHandle | The existing instance of system type |
GetExistingUnmanagedSystem(Type)
Return an existing instance of a system of type in this World. Prefer the version that takes a SystemTypeIndex to avoid unnecessary reflection.
type[ExcludeFromBurstCompatTesting("Takes System.Type")]public SystemHandle GetExistingUnmanagedSystem(Type type)
Parameters
The system type
Returns
Type | Description |
|---|---|
| SystemHandle | The existing instance of system type |
GetExistingUnmanagedSystem(SystemTypeIndex)
Return an existing instance of a system of type in this World. This avoids unnecessary reflection.
typepublic SystemHandle GetExistingUnmanagedSystem(SystemTypeIndex type)
Parameters
The system type
Returns
Type | Description |
|---|---|
| SystemHandle | The existing instance of system type |