playMaker

Author Topic: Locked cursor on global UI transitions  (Read 238 times)

BenWesorick

  • Playmaker Newbie
  • *
  • Posts: 9
Locked cursor on global UI transitions
« on: November 22, 2023, 05:06:51 PM »
I have a first-person setup with a single state which contains a Mouse Look that affects the Y axis, a Mouse Look that affects the X axis for horizontal rotations, and then the Set Mouse Cursor action where I set a custom cursor icon, hide the standard cursor, and lock the cursor to the center of the screen so the cursor reticle stays where the player looks with the camera.

I then have UI elements in my game set to world space that I want to interact with. The global actions UI POINTER ENTER, UI POINTER EXIT, UI POINTER CLICK, and others do not work when I point the player camera at the UI with the custom curson locked to the center of the screen, but the FSMs do register the custom cursor when I uncheck the bool to lock the cursor at the center of the screen. Is there anything I can do to keep the cursor locked in the center and also utilize the global UI FSM transitions?

Thanks!