文档

Unity Engine

Download Unity

Unity Engine

AddSystemsToRootLevelSystemGroups

Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
阅读时间2 分钟最后更新于 14 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

AddSystemsToRootLevelSystemGroups(World, IEnumerable<Type>)

Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
public static void AddSystemsToRootLevelSystemGroups(World world, IEnumerable<Type> systemTypes)

Parameters

world

The World in which the root-level system groups should be created.

The system types to create and add.

AddSystemsToRootLevelSystemGroups(World, IReadOnlyList<Type>)

Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
public static void AddSystemsToRootLevelSystemGroups(World world, IReadOnlyList<Type> systemTypes)

Parameters

world

The World in which the root-level system groups should be created.

The system types to create and add.

AddSystemsToRootLevelSystemGroups(World, Type[])

Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
public static void AddSystemsToRootLevelSystemGroups(World world, params Type[] systemTypes)

Parameters

world

The World in which the root-level system groups should be created.

systemTypes

The system types to create and add.

AddSystemsToRootLevelSystemGroups(World, NativeList<SystemTypeIndex>)

Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). This version avoids unnecessary reflection.
public static void AddSystemsToRootLevelSystemGroups(World world, NativeList<SystemTypeIndex> systemTypes)

Parameters

world

The World in which the root-level system groups should be created.

The system types to create and add.