I'm trying to change the score from Patch editor, but when I use the Patches.Get(data)value, always get an error.
[Spark AR editor] (http://prntscr.com/p9b77g)
Still getting this error
JavaScript error: Exception in native code while calling a function: Trying to get signal to Script with name (text). Please make sure to define a ToScript patch with that name in the patch editor
My code script.js opened using Visual studio code.
// Load in the patches module
const Patches = require('Patches');
// Get the 'myText' string from the Patch Editor
const myString = Patches.getStringValue('text');
It should be fine since I've tried the exact name, but I'm still getting that error.