diff --git a/examples/showTextLength.js b/examples/showTextLength.js new file mode 100644 index 0000000..286abfa --- /dev/null +++ b/examples/showTextLength.js @@ -0,0 +1,13 @@ + +// Checkout the repo examples to get an idea of other ways you can use scripting +// https://github.com/latitudegames/Scripting/blob/master/examples + +const modifier = (text) => { + + state.displayStats = [{key:'Text Length', value: text.length, color: 'red'}] + + return { text } +} + +// Don't modify this part +modifier(text)