add

inline fun <Resource : Any> Skin.add(resource: Resource, name: String = defaultStyle)

Utility function that makes it easier to add Skin assets.

Parameters

name

name of the passed resource. Defaults to defaultStyle.

resource

will be added to the skin and mapped to the selected name.