Sphere
A sphere primitive.
Read time 1 minuteLast updated 5 days ago
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); }}