Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

NetworkDisconnection missing in HoloLens VS generated project

Unity allows the detection of client network disconnection as documented in:

https://docs.unity3d.com/ScriptReference/Network.OnDisconnectedFromServer.html

I added the function below in a component:

void OnDisconnectedFromServer(NetworkDisconnection info)

This compiles fine when coding in editor mode. However, appears that NetworkDisconnection is missing when building the app for HoloLens (via File/Build Settings...)

In other words, NetworkDisconnection is present in Unity's assemblies in edit mode (Library\UnityAssemblies\UnityEngine.dll), but the generated assemblies (Unprocessed\UnityEngine.dll) do not have the NetworkDisconnection struct defined. It seems that NetworkMessageInfo and NetworkPlayer are missing too.

Sign In or Register to comment.