Hello !
I am currently seeking for a scripting functionality that I can't really find.
Problem:
I would like to share a user class across each World scripts. This class could handle and save some attributes for example (it is like some kind of "singleton" pattern).
According to the documentation, I have foundb(from https://developer.un...stem.get_string) :
variable engine.system.get(string var)
Description
Returns a variable from the system script. Instances of user-defined classes cannot be requested in such a manner.
Arguments
string var - Variable name with a namespace, if needed.
Return value
Requested instance.
As you could read :
Instances of user-defined classes cannot be requested in such a manner
And it is true, trying to share user class in such a manner lead to Unigine crash.
Could you please give me some tips on how to achieve that kind of task ? (I believe I could write my own C++ plug-in that will expose my user class to Unigine script and ensure "singleton" pattern but I think it is a bit too "complicated" only for that)
Thanks for reading me !