You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebuild and run (you need to fix a compiler error for this particular branch), it will not work. You will be able to connect, but the OnConnect callback will never be called.
Furthermore, if you revetr to using the original URL, it will also not work in the same way:
NOTE! I was not able to reproduce this reliably, it only happened once for me. As a result, I think it should be a P2 or lower.
Workaround
If you remove and re-add the SpacetimeDBNetworkManager to your game object in the scene, it will again begin working.
Potential Issue and Fix
Currently we do a dance with SpacetimeDBNetworkManager._instance. Based on print statements, I suspect somehow the SpacetimeDBNetworkManager._instance that the Build function referenced was in a different DLL than the SpacetimeDBNetworkManager._instance that was in the scene. Some C# module resolution issue.
Perhaps we could not have a global and for the Unity version just have you add the DbConnection explicitly in your own code which you know for sure references the right instance.
The text was updated successfully, but these errors were encountered:
Reproduction Steps
If you create a new project (or follow the Blackhol.io tutorial) in Unity and and you install the SpacetimeDB SDK unity package with:
Then you add the
SpacetimeDBNetworkManager
to an GameObject in the scene, as directed, you will be able to connect to SpacetimeDB.If you then remove the SpacetimeDB SDK unity package and re-add it with the same URL:
Rebuild and run, it will also work fine.
But if you then remove the SpacetimeDB SDK unity package and re-add it with a different version, e.g.:
Rebuild and run (you need to fix a compiler error for this particular branch), it will not work. You will be able to connect, but the
OnConnect
callback will never be called.Furthermore, if you revetr to using the original URL, it will also not work in the same way:
Workaround
If you remove and re-add the
SpacetimeDBNetworkManager
to your game object in the scene, it will again begin working.Potential Issue and Fix
Currently we do a dance with
SpacetimeDBNetworkManager._instance
. Based on print statements, I suspect somehow theSpacetimeDBNetworkManager._instance
that theBuild
function referenced was in a different DLL than theSpacetimeDBNetworkManager._instance
that was in the scene. Some C# module resolution issue.Perhaps we could not have a global and for the Unity version just have you add the
DbConnection
explicitly in your own code which you know for sure references the right instance.The text was updated successfully, but these errors were encountered: