@@ -191,52 +191,62 @@ private static void EnableVirtualReality()
191191 }
192192 }
193193
194- [ MenuItem ( "HoloToolkit/Configure/HoloLens Recommended Capabilities " , priority = 1 ) ]
195- static void HoloLensRecommendedCapabilities ( )
194+ [ MenuItem ( "HoloToolkit/Configure/Apply HoloLens Capability Settings " , priority = 1 ) ]
195+ static void ApplyHoloLensCapabilitySettings ( )
196196 {
197- AutoConfigureMenu window = ( AutoConfigureMenu ) EditorWindow . GetWindow ( typeof ( AutoConfigureMenu ) , true , "HoloLens Recommended Capabilities " ) ;
197+ AutoConfigureMenu window = ( AutoConfigureMenu ) EditorWindow . GetWindow ( typeof ( AutoConfigureMenu ) , true , "Apply HoloLens Capability Settings " ) ;
198198 window . Show ( ) ;
199199 }
200200
201201 void OnGUI ( )
202202 {
203- capability ( PlayerSettings . WSACapability . Microphone , @" Microphone
204- Required for access to the HoloLens microphone.
203+ capabilityToggle ( PlayerSettings . WSACapability . Microphone , @"Microphone
204+
205+ Required for access to the HoloLens microphone.
205206This includes behaviors like DictationRecognizer,
206- GrammarRecognizer, and KeywordRecognizer.
207- This capability is NOT required for the 'Select'
208- keyword.Recommendation: Only enable if your
209- application needs access to the microphone
210- beyond the 'Select' keyword.The microphone is
211- considered a privacy sensitive resource." ) ;
207+ GrammarRecognizer, and KeywordRecognizer.
208+ This capability is NOT required for the 'Select' keyword.
209+
210+ Recommendation: Only enable if your application
211+ needs access to the microphone beyond the
212+ 'Select' keyword. The microphone is considered a
213+ privacy sensitive resource." ) ;
214+
215+ capabilityToggle ( PlayerSettings . WSACapability . SpatialPerception , @"SpatialPerception
212216
213- capability ( PlayerSettings . WSACapability . SpatialPerception , @" SpatialPerception
214217Required for access to the HoloLens world mapping
215- capabilities. These include behaviors like
218+ capabilities. These include behaviors like
216219SurfaceObserver, SpatialMappingManager and
217- SpatialAnchor. Recommendation: Enabled unless
218- your application doesn't use spatial mapping or
219- spatial collisions in any way." ) ;
220+ SpatialAnchor.
221+
222+ Recommendation: Enabled, unless your application
223+ doesn't use spatial mapping or spatial collisions
224+ in any way. " ) ;
225+
226+ capabilityToggle ( PlayerSettings . WSACapability . WebCam , @"WebCam
220227
221- capability ( PlayerSettings . WSACapability . WebCam , @" WebCam
222228Required for access to the HoloLens RGB camera
223229(also known as the locatable camera). This
224230includes APIs like PhotoCapture and VideoCapture.
225- This capability is NOT required for mixed reality
226- streaming or for capture photos or videos from the
227- start menu. Recommendation: Only enable if your
228- application needs access to capture raw photos or
229- videos from the RGB camera. The RGB camera is
231+ This capability is NOT required for mixed reality
232+ streaming or for capturing photos or videos using
233+ the start menu.
234+
235+ Recommendation: Only enable if your application
236+ needs to programmatically capture photos or
237+ videos from the RGB camera. The RGB camera is
230238considered a privacy sensitive resource." ) ;
231239
232- capability ( PlayerSettings . WSACapability . InternetClient , @" InternetClient
233- Required if your application needs to access the
234- Internet. Recommendation: Leave unchecked
235- unless your application needs to access online
236- services." ) ;
240+ capabilityToggle ( PlayerSettings . WSACapability . InternetClient , @"Internet Client
241+
242+ Required if your application needs to access
243+ the Internet.
244+
245+ Recommendation: Leave unchecked unless your
246+ application uses online services." ) ;
237247 }
238248
239- void capability ( PlayerSettings . WSACapability mCap , string tooltip )
249+ void capabilityToggle ( PlayerSettings . WSACapability mCap , string tooltip )
240250 {
241251 PlayerSettings . WSA . SetCapability ( mCap , GUILayout . Toggle ( PlayerSettings . WSA . GetCapability ( mCap ) , new GUIContent ( " " + mCap . ToString ( ) , tooltip ) ) ) ;
242252 }
0 commit comments