Question by
rainbow_design · Sep 04, 2015 at 02:50 PM ·
unity 5importing
Where is PrimitiveType?
I want to do:
from UnityEngine import GameObject
cube = GameObject.CreatePrimitive(PrimitiveType.Cube)
in Python!
However there is something i am missing:
from ? import PrimitiveType
In which module can i actually find PrimitiveType.Cube ?
Comment
Best Answer
Answer by Dave-Carlile · Sep 13, 2015 at 12:13 PM
PrimitiveType is defined in UnityEngine.