LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

PrimitiveType.Sphere

Description

A sphere primitive.

See Also: GameObject.CreatePrimitive.

    // Creates a sphere primitive
    function Start () {
        var sphere : GameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
    }