Asset

@Serializable
data class Asset(var name: String? = null, val version: String = "2.0", val generator: String? = null, val copyright: String? = null, val minVersion: String? = null, val extensions: JsonElement? = null, val extras: JsonElement? = null) : GLTFProperty

Constructors

Link copied to clipboard
constructor(name: String? = null, version: String = "2.0", generator: String? = null, copyright: String? = null, minVersion: String? = null, extensions: JsonElement? = null, extras: JsonElement? = null)

Properties

Link copied to clipboard
val copyright: String? = null

A copyright message suitable for display to credit the content creator.

Link copied to clipboard
open override val extensions: JsonElement? = null

JSON object with extension-specific objects.

Link copied to clipboard
open override val extras: JsonElement? = null

Although extras MAY have any type, it is common for applications to store and access custom data as key/value pairs. Therefore, extras SHOULD be a JSON object rather than a primitive value for best portability.

Link copied to clipboard
val generator: String? = null

Tool that generated this glTF model. Useful for debugging.

Link copied to clipboard
val minVersion: String? = null

The minimum glTF version in the form of <major>.<minor> that this asset targets. This property MUST NOT be greater than the asset version.

Link copied to clipboard
open override var name: String?
Link copied to clipboard

The glTF version in the form of <major>.<minor> that this asset targets.