PrimitiveType
.Cylinder
Manual
Reference
Scripting
Scripting
>
Enumerations
>
PrimitiveType
PrimitiveType
.Cylinder
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
PrimitiveType
All Members
Values
Capsule
Cube
Cylinder
Plane
Sphere
PrimitiveType.Cylinder
Description
A cylinder primitive
See Also:
GameObject.CreatePrimitive
JavaScripts
JavaScript
C#
Boo
function
Start
() {
var
cylinder :
GameObject
=
GameObject.CreatePrimitive
(
PrimitiveType.Cylinder
);
}
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Start
() {
GameObject
cylinder =
GameObject.CreatePrimitive
(
PrimitiveType.Cylinder
);
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Start
():
cylinder as
GameObject
=
GameObject.CreatePrimitive
(
PrimitiveType.Cylinder
)