文档

Unity Engine

Unity Engine

World

Construct a new World instance
阅读时间1 分钟最后更新于 19 天前

Definition

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

World(string, WorldFlags)

Construct a new World instance
public World(string name, WorldFlags flags = WorldFlags.Simulation)

Parameters

name

The name to assign to the new World

The flags to assign to the new World

World(string, WorldFlags, AllocatorHandle)

Construct a new World instance
public World(string name, WorldFlags flags, AllocatorManager.AllocatorHandle backingAllocatorHandle)

Parameters

name

The name to assign to the new World

The flags to assign to the new World

backingAllocatorHandle

The allocator to use for any of the world's internal memory allocations