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 in Unity (OnPhotoCaptureCreated event) throws error
In the "Locatable camera in Unity" article, in the OnPhotoCaptureCreated event, this line
Resolution cameraResolution = PhotoCapture.SupportedResolutions.OrderByDescending((res) => res.width * res.height).First(); Throws the following exception:
CS1061 'IEnumerable' does not contain a definition for 'OrderByDescending' and no extension method 'OrderByDescending' accepting a first argument of type 'IEnumerable' could be found.
I know that I could just grab the first Resolution item, but I'd really like to get the Supported Resolution from the camera. Any ideas?
CTO /Co-Founder at AJi, Microsoft Regional Director, Agile Thought Leader, UX Junkie
Best Answers
-
HoloSheep mod
Try adding the following using statement in your using section:
using System.Linq;
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings5 -
Thanks @HoloSheep!
CTO /Co-Founder at AJi, Microsoft Regional Director, Agile Thought Leader, UX Junkie
5
Answers
Try adding the following using statement in your using section:
using System.Linq;
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings
Thanks @HoloSheep!
CTO /Co-Founder at AJi, Microsoft Regional Director, Agile Thought Leader, UX Junkie