This shows you the differences between two versions of the page.
— |
en:template:text_variables [2016/08/11 09:53] (current) Nicolas Ronvel created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Text Variables ====== | ||
+ | A text variable is the simplest form of variable. It can be used with many properties of the canvas, to set some options or to display text. | ||
+ | |||
+ | To use a **Text Variable**, use the text ''$myVariable'', with the name corresponding to the field defined. | ||
+ | |||
+ | <code javascript> | ||
+ | "canvasFields": [ | ||
+ | {"type":"text","text":"$characterType", "fontSize": 22} | ||
+ | ] | ||
+ | </code> |