文档

Unity Engine

Download Unity

Unity Engine

GetWorld(Entity)

Gets the managed world that owns an entity.
阅读时间1 分钟最后更新于 1 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
[ExcludeFromBurstCompatTesting("Returns managed World")]public static World GetWorld(Entity entity)

Parameters

entity

The entity.

Returns

Type

Description

WorldThe world that owns the entity.