Forum rules - please read before posting.

Show hotspot label when Input Method is Touch Screen

Hi,

when I set Input Method to Mouse and Keyboard, then it's working as expected - hotspot labels are shown when Player is colliding with the collider.

But when I set Input Method to Touch Screen, then even if Player is colliding with the Hotspot, labels are not displayed (but sometimes they are), why? Do I need some custom scripting? My goal is to have it same behaviour as in the Input Method set to Mouse and Keyboard.

Unity: 6
AC: 1.86.1

AC Settings:

Thanks.
Jakub

Comments

  • Does this occur when testing in the Editor, and is there a discernable pattern regarding when labels occur vs they don't?

  • It occurs both in the Editor and in the Build.

    I think the pattern is when I'm touching the screen, label shows up, but not when I move - I have to stop in the hotspot collider and touch screen once sometimes.

    But for example, when Player is staying right on the Hotspot collider and Hotspot is disabled, then I enable Hotspot, but label don't show up automatically right after the enabling the Hotspot (but when I set Input Method to Mouse and Keyboard, then it's working as expected - hotspot labels are shown and I don't have to move the Player).

    Jakub

  • Open up AC's PlayerInput script and find the IsCursorReadable function around line 984.

    At the top of it, copy/paste:

    return true;
    

    Does that resolve it?

  • Yes! Thank you!
    Have a nice day,
    Jakub

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.