set

inline operator fun <Resource : Any> Skin.set(name: String, resource: Resource)
inline operator fun <Resource : Any, E : Enum<E>> Skin.set(name: E, resource: Resource)

Utility function that makes it easier to add Skin assets.

Parameters

name

name of the passed resource.

resource

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