ドキュメント

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); }}