文档

Unity Engine

Download Unity

Unity Engine

CreateArchetype(WorldUnmanaged, ReadOnlySpan<ComponentType>)

Creates an archetype in the given world.
阅读时间1 分钟最后更新于 1 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static EntityArchetype CreateArchetype(WorldUnmanaged world, ReadOnlySpan<ComponentType> types)

Parameters

The world to create the archetype in.

The component types of the archetype.

Returns

Type

Description

EntityArchetypeThe archetype, which is only valid in
world
.