ArModel

data class ArModel(var type: Int = 0, var fields: ModelFields = ModelFields(), var texture: Texture? = null, var androidTexture: Texture? = null, var event: Int? = null) : Serializable

The renderable part of an AR object (the model object of an AR object in the scene payload).

Constructors

Link copied to clipboard
constructor(type: Int = 0, fields: ModelFields = ModelFields(), texture: Texture? = null, androidTexture: Texture? = null, event: Int? = null)

Properties

Link copied to clipboard
@SerializedName(value = "android_texture")
var androidTexture: Texture?

Android-specific resource. For 3D models (type 8) it is preferred over texture; for other types it is used only when texture has no URL. JSON key android_texture.

Link copied to clipboard
var event: Int?

Present in the payload but not read by the player.

Link copied to clipboard

Type-specific settings such as size, video and polyhedron options.

Link copied to clipboard

Main resource: image, video or model file URL, depending on type.

Link copied to clipboard
var type: Int

Model kind; matched against ArModelEnum.type (1 = plane, 2 = ball, 4 = cylinder, 8 = 3D model, 9 = video, 16 = snow, 17 = dashboard, ...). Unknown values map to ArModelEnum.UNKNOWN.