Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] HelloCardboardInputSystem: IsTriggerPressed does not work periodically #457

Open
1 task
makakaorg opened this issue Mar 16, 2024 · 1 comment
Open
1 task
Labels
bug Something isn't working

Comments

@makakaorg
Copy link

makakaorg commented Mar 16, 2024

SPECIFIC ISSUE ENCOUNTERED

HelloCardboardInputSystem scene: IsTriggerPressed flag in CardboardReticlePointer.cs does not work periodically on iOS

SMARTPHONE (please complete the following information):

  • Device: iPhone XS Max
  • OS
    • iOS
  • OS version 17.4

STEPS TO REPRODUCE THE ISSUE

  1. Open Scene
  2. Point and Tap on Several Treasures
  3. Tap on the Screen (i.e. IsTriggerPressed flag) periodically doesn't work - The object does not disappear

EXPECTED BEHAVIOR

Objects disappear every time you Point at them and Tap

VERSIONS USED

What version of Google Cardboard are you using?
Cardboard XR Plugin 1.24.0

If you are using Cardboard XR Plugin:

  • What version of Unity are you using?
    Example: 2022.3.21

  • Select in which graphics API you can reproduce the bug.

    • Metal
@makakaorg makakaorg added the bug Something isn't working label Mar 16, 2024
@lneumarkt
Copy link

Thank you @makakaorg for reaching out.

I’ve tried to replicate the problem on my end using Unity 2022.3.21 in different iPhone devices:

  • iPhone 14: iOS 17.4
  • iPhone SE: iOS 14.6
  • iPhone Xr: iOS 16.0

But unfortunately I couldn’t reproduce the bug.


Just to clarify, IsTriggerPressed is not a flag but a method that checks if the screen was pressed.

To help us identify this bug, would you be so kind as to add some logs to check if the screen is being touched correctly when pointing at an object?

Please add the following line here to print the value of touch.phase to verify that the screen is being touched:

Debug.Log(touch.phase.ReadValue());

Then add another log here to verify that the object is being pointed at.

Debug.Log(“Gazed at object.”);

The expected result is that when looking at the treasure and touching the screen both thing should happen:

  • touch.phase.ReadValue() should be Began.
  • The second log should be printed when an object is tapped.

Please check this and let us know the outcome.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants