Does ML SDK's officially support disabled "Reload Domain" for enter playmode setting?

Would be nice to know. We're trying to get an overview of which of our third-party packages doesn't support this.
Initial tests suggest that the static methods in MagicLeapSettings from com.unity.xr.magicleap creates errors.

Hi @TheMunk,

Thanks for reaching out to us. I just have a few questions to get us started. Would you mind sharing the following information.

  • Unity Editor version
  • ML2 OS Version
  • ML SDK Version
  • Development OS Platform



Could you also provide what the errors look like specifically?

This is not an error.

This is a question. Your developers would have had to know about this Unity feature and specifically implement methods for resetting static fields and events when developing the SDKs.

Yes @TheMunk, this is supported. Please note when Domain Reloading is disabled, the values of static fields in your code do not automatically reset to their original values. You need to add code that explicitly does this. You can learn more on Unity here: Unity - Manual: Domain Reloading

If you do receive any errors, please let us know.

1 Like

I know what it is about - you just linked the same link i already shared. :wink:

I'm asking because symptoms of turning off domain reload may not show themselves as errors, and instead just bugs that can be hard to track down in your SDKs, which is why I'm asking.

But if you say it's supported, I'll assume it is.

So I just got no domain reload to work in our fairly big project - mostly had to fix MRTK stuff (as expected), and it seems like all your ML2 SDK behaves nicely!
However, a small change was needed to the SDK package released by Unity (com.unity.xr.magicleap) in MagicLeapSettings.cs;

Thanks for letting us know about this @TheMunk. We really appreciate your insight on this!