ドキュメント

Unity Engine

Download Unity

Unity Engine

PushWorldStack(World)

Makes world the World.DefaultGameObjectInjectionWorld.
読み終わるまでの所要時間 1 分最終更新 22日前

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.