Skip to content

Kiln API / kiln / Resource

Interface: Resource<T> ​

A singleton value owned by the app: input, RNG, score, config.

Extended by ​

Type Parameters ​

Type ParameterDefault type
Tunknown

Properties ​

PropertyModifierTypeDescription
[$resource]readonlytrue-
createreadonly(app) => T-
opaquereadonlybooleanSkip the dev read-only proxy (for Three.js objects and other class graphs).
namereadonlystringName used in errors, snapshots and kiln describe.

Methods ​

named() ​

ts
named(name): this;

Parameters ​

ParameterType
namestring

Returns ​

this