Unity Plugin (UP) & API
Use this type of Global Variable to access a value from an external JSON file.
Use the variable’s name to reference it in the Formula fields of nodes and connections throughout your diagrams. See the example below.
URL – the location of your JSON file (e.g.: https://api.binance.com/api/v3/ticker/24hr?symbol=ETHBTC)
Path value: the path of the value to be retrieved from the file (e.g.: lastPrice)
If the content of your JSON file has an object property like in the following example:
the correct path for retrieving the value for playerDamage is someGame.playerDamage
Hit the Refresh button whenever you want to retrieve the latest value from the source defined in the previous fields.
To prevent CORS issues, ensure the server configuration supports that the data is accessible by another domain.