File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Assets/MixedRealityToolkit.Providers/WindowsVoiceInput Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ public override void Initialize()
8181 {
8282 UnityEditor . PlayerSettings . WSA . SetCapability ( UnityEditor . PlayerSettings . WSACapability . Microphone , true ) ;
8383 }
84+
85+ if ( ! UnityEditor . PlayerSettings . WSA . GetCapability ( UnityEditor . PlayerSettings . WSACapability . InternetClient ) )
86+ {
87+ UnityEditor . PlayerSettings . WSA . SetCapability ( UnityEditor . PlayerSettings . WSACapability . InternetClient , true ) ;
88+ }
8489 }
8590#endif // UNITY_EDITOR
8691
@@ -149,6 +154,11 @@ public override void Destroy()
149154 {
150155 UnityEditor . PlayerSettings . WSA . SetCapability ( UnityEditor . PlayerSettings . WSACapability . Microphone , false ) ;
151156 }
157+
158+ if ( UnityEditor . PlayerSettings . WSA . GetCapability ( UnityEditor . PlayerSettings . WSACapability . InternetClient ) )
159+ {
160+ UnityEditor . PlayerSettings . WSA . SetCapability ( UnityEditor . PlayerSettings . WSACapability . InternetClient , false ) ;
161+ }
152162#endif // UNITY_EDITOR
153163
154164 if ( Application . isPlaying )
You can’t perform that action at this time.
0 commit comments