Documentation

Unity Engine

Unity Engine

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
T
in this World.
public SystemHandle GetExistingUnmanagedSystem<T>() where T : unmanaged, ISystem

Returns

Type

Description

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

GetExistingUnmanagedSystem(Type)

Return an existing instance of a system of type
type
in this World. Prefer the version that takes a SystemTypeIndex to avoid unnecessary reflection.
[ExcludeFromBurstCompatTesting("Takes System.Type")]public SystemHandle GetExistingUnmanagedSystem(Type type)

Parameters

type

The system type

Returns

Type

Description

SystemHandleThe existing instance of system type
type
in this World. If no such instance exists, the method returns SystemHandle.Null.

GetExistingUnmanagedSystem(SystemTypeIndex)

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

Parameters

The system type

Returns

Type

Description

SystemHandleThe existing instance of system type
type
in this World. If no such instance exists, the method returns SystemHandle.Null.