Const
Gets the Unity version of the current application.
It is possible to override or manually set its value using Il2Cpp.$config.unityVersion:
Il2Cpp.$config.unityVersion = "5.3.5f1";Il2Cpp.perform(() => { // prints 5.3.5f1 console.log(Il2Cpp.unityVersion);}); Copy
Il2Cpp.$config.unityVersion = "5.3.5f1";Il2Cpp.perform(() => { // prints 5.3.5f1 console.log(Il2Cpp.unityVersion);});
When overriding its value, the user has to make sure to set a valid value so that it gets matched by the following regular expression:
(20\d{2}|\d)\.(\d)\.(\d{1,2})(?:[abcfp]|rc){0,2}\d? Copy
(20\d{2}|\d)\.(\d)\.(\d{1,2})(?:[abcfp]|rc){0,2}\d?
Gets the Unity version of the current application.
It is possible to override or manually set its value using Il2Cpp.$config.unityVersion:
When overriding its value, the user has to make sure to set a valid value so that it gets matched by the following regular expression: