Documentation

Unity Engine


Unity Engine


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
T
in this World.
public SystemHandle GetExistingSystem<T>() where T : ComponentSystemBase

Returns

Type

Description

SystemHandleA handle to the existing instance of system type
T
in this World. If no such instance exists, the method returns default.

GetExistingSystem(Type)

Return a handle to an existing instance of a system of type
type
in this World. Prefer the version that takes a SystemTypeIndex where possible to avoid unnecessary reflection.
public SystemHandle GetExistingSystem(Type type)

Parameters

type

The system type

Returns

Type

Description

SystemHandleA handle to the existing instance of system type
type
in this World. If no such instance exists, the method returns default.

GetExistingSystem(SystemTypeIndex)

Return a handle to an existing instance of a system of type
type
in this World. This version avoids unnecessary reflection.
public SystemHandle GetExistingSystem(SystemTypeIndex type)

Parameters

The system type

Returns

Type

Description

SystemHandleA handle to the existing instance of system type
type
in this World. If no such instance exists, the method returns default.