Hello,
for my two hololenses I did the Holograms 240 sample / tutorial.
That worked good, both hololenses in my wlan Network worked together with the sharing Service.
I have my own Project which can load and Display a mesh like a machine or something, and place it, rotate it scale it an so on.
I want to have a Feature, that the second hololens with my app can see what the first hololens with the app sees (and does).
So I copied the HoloToolkit-Sharing-240 Folder into my app under my assets Folder.
Was that okay or should I have used something else?
I added the Sharing Prefab to my Project hierarchy. I placed the correct IP in itâs sharing stage script.
I added the ImportExportanchorManager to my gameobject containing my mesh.
I opened the unity Player Settings and checked all Client and Server capabilites.
First I start the Service for the sharing from my unity. It starts okay.
When I start my app in unity itself, it says âSharingService: Session Join Succeededâ in the log.
So this works or at least Shows no error, in the sharing Service I can see the Client connected.
When I build and create the solution for VS2015 for universal and hololens, and open the solution with visual Studio, I get an error message of âUnsafe Codeâ now. So I opened the Project properties in visual Studio and checked âAllow unsafe Codeâ.
Now I can build and start on my hololens. But in the sharing Service window I can see the Client does not connect or at least nothing happens here.
When I look at the visual Studio Output it says
Exception thrown: âSystem.DllNotFoundExceptionâ in Assembly-CSharp.dll
Exception thrown: âSystem.TypeInitializationExceptionâ in Assembly-CSharp.dll
Exception thrown: âSystem.TypeInitializationExceptionâ in Assembly-CSharp.dll
TypeInitializationException: The type initializer for âAcademy.HoloToolkit.Sharing.SharingClientPINVOKEâ threw an exception.
at Academy.HoloToolkit.Sharing.SharingClientPINVOKE.new_LogWriter()
at Academy.HoloToolkit.Sharing.SharingStage.Awake()
at Academy.HoloToolkit.Sharing.SharingStage.$Invoke3(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)
Any idea what I did wrong or what I am missing? Help would be great, thanks a lot!