[BUG] Disabled StatefulInteractable
are interactable after set SpeechRecognitionKeyword
or AllowSelectByVoice
#591
Labels
Package: Core
The Project core package is impacted by this issue.
Priority: Medium
The priority of the issue is medium.
Type: Bug
A problem with an existing feature that can be fixed with the next patched release.
Describe the bug
When setting the properties
SpeechRecognitionKeyword
orAllowSelectByVoice
of a disabledStatefulInteractable
, a warning is triggered and the interactable starts again to trigger clicks events even though it's disabled.This is due to the button unregister and register back to the interaction manager.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The interactable is doesn't trigger the warning and doesn't trigger click events
Your setup
Target platform
Additional context
The fix is to check
before unregister and register the interactable. This will also fix editor script using these properties.
The interactable will register himself on enable (in unity XRI code).
Side note: why is
VoiceRequiresFocus
private set? I needed to set it from code but I couldn't.The text was updated successfully, but these errors were encountered: