playMaker

Author Topic: mouse look incompatible with ui [SOLVED]  (Read 99 times)

Carmichael

  • Full Member
  • ***
  • Posts: 221
    • View Profile
mouse look incompatible with ui [SOLVED]
« on: November 09, 2017, 08:08:32 PM »
hi, i'm trying to use mouse look to control my camera and ui to handle player movements and attack, it's a mobile game, but the problem is that whenever i put my finger on the joystick the mouse look takes effect and messes everything up, is there a way to stop mouse look from working when i touch my ui elements
« Last Edit: November 12, 2017, 05:42:05 AM by djaydino »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: mouse look incompatible with ui
« Reply #1 on: November 09, 2017, 11:20:37 PM »
Hi,

 yes, you need to use the uGui full addon package from the ecosystem.

 you have an action called "IsPointerOverUiObject"

you can see it in action with the sample "uGuiCheckPointerIsOverUI" also available on the Ecosystem.

 Bye,

 Jean

Carmichael

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Re: mouse look incompatible with ui
« Reply #2 on: November 10, 2017, 06:39:40 AM »
hi jean, i'm trying to control my camera by moving the screen, but at the same time have my inputs respect my ui area.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2260
    • View Profile
    • jinxtergames
Re: mouse look incompatible with ui
« Reply #3 on: November 10, 2017, 02:09:07 PM »
Hi,
Should the player be able to move the camera while holding a finger on the joystick?

If not maybe you can 'disable' the mouse look when joystick is active?

What actions are you using for the joystick?


Carmichael

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Re: mouse look incompatible with ui
« Reply #4 on: November 10, 2017, 06:48:12 PM »
Hi,
Should the player be able to move the camera while holding a finger on the joystick?

If not maybe you can 'disable' the mouse look when joystick is active?

What actions are you using for the joystick?

yes djaydino, i've added a different joystick for that and rotating the camera based on the player's input

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2260
    • View Profile
    • jinxtergames
Re: mouse look incompatible with ui
« Reply #5 on: November 11, 2017, 11:25:41 AM »
Hi,
What actions do you use to control the joysticks?

Carmichael

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Re: mouse look incompatible with ui
« Reply #6 on: November 11, 2017, 12:22:35 PM »
i've solved the issue thanks, it's get axis i use, i think in order to use the sreen i'll have to make use of a touch pad, but the joystick works fine