语言英语
  • C#

PrimitiveType.Capsule

描述

胶囊体基元。

其他资源:GameObject.CreatePrimitive

using UnityEngine;
using System.Collections;

// Creates a capsule primitive

public class ExampleClass : MonoBehaviour { void Start() { GameObject capsule = GameObject.CreatePrimitive(PrimitiveType.Capsule); } }

Did you find this page useful? Please give it a rating: