We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e36c610 + 5677810 commit 8061a80Copy full SHA for 8061a80
Assets/HoloToolkit/Input/Scripts/Cursor/Cursor.cs
@@ -204,6 +204,10 @@ private void OnDestroy()
204
/// </summary>
205
protected virtual void RegisterManagers()
206
{
207
+ // This accounts for any input sources that were detected before we register as a global listener below.
208
+ visibleHandsCount = (uint)InputManager.Instance.DetectedInputSources.Count;
209
+ IsHandVisible = visibleHandsCount > 0;
210
+
211
// Register the cursor as a global listener, so that it can always get input events it cares about
212
InputManager.Instance.AddGlobalListener(gameObject);
213
0 commit comments