文档

Unity Engine

Download Unity

Unity Engine

PrimitiveType

The various primitives that can be created using the GameObject.CreatePrimitive function.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum PrimitiveType

Remarks

Additional Resources: GameObject.CreatePrimitive.

Fields

Value

Description

CapsuleA capsule primitive.
CubeA cube primitive.
CylinderA cylinder primitive.
PlaneA plane primitive.
QuadA quad primitive.
SphereA sphere primitive.