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.
Locatable Camera known issue? (PhotoCapture.CreateAsync doesn't start)
Debug.Log("Initialized");
PhotoCapture.CreateAsync(false, ( a ) => { Debug.Log("Started"); });
I get Initialized, but never Started. Webcam capabilities are on in both Unity and explicitly in the appxmanifest.
?
Best Answer
-
OptionsHoloSheep mod
@JimGale I copied and pasted your two lines into one off my object's start methods with only minor modification of the strings to ("PhotoCapture Initialized" and "PhotoCapture Started"). Doubled checked that I had the Webcam capability checked in Unity's player settings, publishing settings.
I added the necessary using statement:
using UnityEngine.VR.WSA.WebCam;
and then ran my project (with debugging) first against the emulator and then on a device.
In both cases both the Initialized and Started log statements executed and output to my immediate window. In the emulator there was another statement that said something about the webcam not being available (as you would expect).
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings5
Answers
@JimGale I copied and pasted your two lines into one off my object's start methods with only minor modification of the strings to ("PhotoCapture Initialized" and "PhotoCapture Started"). Doubled checked that I had the Webcam capability checked in Unity's player settings, publishing settings.
I added the necessary using statement:
and then ran my project (with debugging) first against the emulator and then on a device.
In both cases both the Initialized and Started log statements executed and output to my immediate window. In the emulator there was another statement that said something about the webcam not being available (as you would expect).
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings
thanks, after updating to the latest HoloOS, I also updated Unity, Metro-overlay, reset and re-paired. Now it works.
If anyone still has this issue, I found that I required the 'microphone' capability. I could consistently cause and eliminate the issue by toggling it the capability in the manifest.
That fixed it for me as well. Thanks @NickDarvey
Does anyone know how to fix the following error:
https://drive.google.com/file/d/0B9_mLRD-3A03X09MWDVEMF9qUmM/view
"Unable to find plugins folder WSAPlayer. Native VR plugins will not be loaded."
You are using x64 Unity and HoloLens is an x86 system therefor any WSAPlayer plugins needed to be in x86 folder and Native x64 plugins are no use for HoloLens, hence they not loaded
I copied the Unity files (including WSAPLayer) to the x86 folder, but the error persists. Any suggestions?
In Unity Select Inspector and click on the plugin. In Inspector make sure only WSA is selected and Windows store is selected.
See if there is an error box at the bottom of page, check the characteristics of the DLL to see if its supported by Unity.