Speech Recognition doesn't work after losing focus and refocus into app. #10519
Answered
by
john-jeffri
john-jeffri
asked this question in
Q&A
-
Hi, I'm using voice commands in my Unity app. And it works super well at the launch but when I lose focus and come back those voice commands doesn't work. Using Unity 2020.3.15f2 and MRTK 2.7.2.0. Any help will be really appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
john-jeffri
Mar 30, 2022
Replies: 1 comment 1 reply
-
`private void OnApplicationFocus(bool isFocused)
This fixed the issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MaxWang-MS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`private void OnApplicationFocus(bool isFocused)
{
Debug.Log($"Is App focused? : {isFocused}");
This fixed the issue.