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

UnitySendMessage

EMebaneEMebane
edited November 2016 in Questions And Answers

I am making a plugin. When a thread in the plugin completes I want to use UnitySendMessage to communicate back to my non-plugin code. I see Android/iOS implementations of UnitySendMessage. Has UnitySendMessage been exposed/implemented for Windows UWP? Here is a related thread suggesting that not long ago it was possible but un-implemented for WP8 Plugins. If not, what is a thread-safe way of communicating to Unity from a UWP DLL?
https://community.unity.com/t5/Windows/using-UnitySendMessage-in-WP8-Plugins/td-p/2145347

Best Answer

Answers

  • Options

    I was able to pass a reference to a delegate in my non-plugin code into the plugin, which I can invoke from the plugin.

    I did not have to use Marshal.GetFunctionPointerForDelegate as suggested in the link I posted. Is this because my plugin is also C# (managed) and the suggestion was for a C++ plugin (unmanaged)?

Sign In or Register to comment.