Documentation

Unity Engine

Download Unity

Unity Engine

AppendWorldToCurrentPlayerLoop(World)

Append this World's three default top-level system groups to the current Unity player loop.
Read time 1 minuteLast updated 8 hours ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.CoreModule
public static void AppendWorldToCurrentPlayerLoop(World world)

Parameters

world

The three top-level system groups from this World will be added to the provided player loop.

Remarks

This is a convenience wrapper around AddWorldToPlayerLoop() that retrieves the current player loop, adds a World's top-level system groups to it, and sets the modified copy as the new active player loop.
Note that modifications to the active player loop do not take effect until to the next iteration through the player loop.