Is it possible to get the game version using a variable? (Or to get the game version on an event and turn it into a variable)
I mean the version you set in project properties, so you could display it on a settings page and even make the game check for updates.
from what i know, nope
Hi!
In your JSON source version, you can examine then extract the word “Version” : , like below for my game (in my example => “O.7.1” is the version)
I am closing this as solved assuming you are the same lucasm as on discord. The solution was using this Js code:
// Get Version from project data
const version = runtimeScene.getGame().getGameData().properties.version;
// Store in scene variable version
runtimeScene.getVariables().get("version").setString(version);
2 Likes
That’s literally the same code with a different scene variable name
Yeah, oops ⠀ ⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀
This topic was automatically closed after 45 hours. New replies are no longer allowed.