Hey,
I have some classes in C# that call some Java code(some other classes).
The C# classes are not inherits from MonoBehaviour, so they can’t be attached to an object, and they all have static methods that I call to run the Java code.
When I use the C# code in one unity scene, all works great.
But when I try to call some of the code in one scene(loading scene and call some init methods), some of the code won’t work on the next scene.
As far as I know, unity keeps alive between scenes classes that are not MonoBehaviour.
And if the environment of the JNI were to change, all of the java code couldn’t work for me.
Does anyone has an idea how can I make sure that all the JavaObjects are safe between scenes?
Thanks