Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

World.CreateSystem

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public SystemHandle CreateSystem();

Returns

SystemHandle A handle to the new instance of system type T in this World.

Description

Create and return a handle to an instance of a system of type T in this World.

This can result in multiple instances of the same system in a single World, which is generally undesirable.

Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before creating the system, and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.


Declaration

public SystemHandle CreateSystem(Type type);

Parameters

Parameter Description
type The system type

Returns

SystemHandle A handle to the new instance of system type type in this World.

Description

Create and return a handle to an instance of a system of type type in this World.

This can result in multiple instances of the same system in a single World, which is generally undesirable.

Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before creating the system, and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.


Declaration

public SystemHandle CreateSystem(SystemTypeIndex type);

Parameters

Parameter Description
type The system type

Returns

SystemHandle A handle to the new instance of system type type in this World.

Description

Create and return a handle to an instance of a system of type type in this World.