Documentation

Unity Engine

Unity Engine

PushWorldStack(World)

Makes world the World.DefaultGameObjectInjectionWorld.
Read time 1 minuteLast updated 6 days ago

Definition

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

Parameters

world

The World to make the DefaultGameObjectInjectionWorld.

Remarks

Every push should have a matching World.PopWorldStack. It is preferable to use World.ActiveWorldScope, which pops for you even when the body throws.