Method CreatePrimitive
CreatePrimitive(PrimitiveType)
Analogous to GameObject.CreatePrimitive, but creates a primitive mesh renderer with fast shader instead of a default builtin shader. Optimized for testing performance.
선언
public static GameObject CreatePrimitive(PrimitiveType type)
파라미터
타입 | 이름 | 설명 |
---|---|---|
PrimitiveType | type | The type of primitive object to create. |
반환
타입 | 설명 |
---|---|
GameObject | A GameObject with primitive mesh renderer and collider. |