文档

Unity Engine

Unity Engine

Sphere

A sphere primitive.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Sphere = 0

Remarks

Additional Resources: GameObject.CreatePrimitive.

Examples

using UnityEngine;using System.Collections;// Creates a sphere primitivepublic class ExampleClass : MonoBehaviour{ void Start() { GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere); }}