UNPKG

yarn-spinner-runner-ts

Version:

TypeScript parser, compiler, and runtime for Yarn Spinner 3.x with React adapter [NPM package](https://www.npmjs.com/package/yarn-spinner-runner-ts)

20 lines (13 loc) 531 B
## Smart Variables (Yarn Spinner) Source: [docs.yarnspinner.dev Smart Variables](https://docs.yarnspinner.dev/write-yarn-scripts/scripting-fundamentals/smart-variables) ### What it covers - Variables that reference game-side data or computed values. - Enable referencing properties without manual syncing. ### Example (conceptual) ```yarn title: HUD --- Player: Health is {player.health} and gold is {player.gold}. === ``` Implementation details depend on the host engine (Unity/Godot/Unreal) binding.