PrimitiveType

enum PrimitiveType

Description

The usual types of game primitives that you can create using GameObject.CreateGameObject method.

Properties

Empty

Empty GameObject only with Transform attached. The same as GameObject.CreateGameObject().

Sprite

Creates a sprite primitive type with SpriteRenderer attached.

Circle

Creates a circle primitive type with CircleRenderer attached.

Text

Creates a text primitive type with Text component attached.

AudioSource

Creates a audio source primitive type with AudioSource attached.

AudioListener

Creates a audio listener primitive type with AudioListener attached.

UIFrame

Creates a UI frame primitive type with Frame and UITransform attached.

UIImage

Creates a UI image primitive type with Image and UITransform attached.

UIButton

Creates a UI button primitive type with Button and UITransform attached.

UIText

Creates a UI text primitive type with Text and UITransform attached.

Last updated