ResourceAsset

class ResourceAsset(val format: Format, val resource: Resource) : Asset

A single resource asset.

Parameters

format

Format of the asset.

resource

Opened resource to access the asset.

Constructors

Link copied to clipboard
constructor(format: Format, resource: Resource)

Properties

Link copied to clipboard
open override val format: Format
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.