Cylinder
A cylinder primitive.
阅读时间1 分钟最后更新于 22 天前
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Cylinder = 2
Remarks
Additional Resources: GameObject.CreatePrimitive.
Examples
using UnityEngine;using System.Collections;// Creates a cylinder primitivepublic class ExampleClass : MonoBehaviour{ void Start() { GameObject cylinder = GameObject.CreatePrimitive(PrimitiveType.Cylinder); }}