playMaker

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

Ofonna

  • Full Member
  • ***
  • Posts: 230
mouse look incompatible with ui [SOLVED]
« on: November 09, 2017, 10: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, 07:42:05 AM by djaydino »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: mouse look incompatible with ui
« Reply #1 on: November 10, 2017, 01:20:37 AM »
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

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: mouse look incompatible with ui
« Reply #2 on: November 10, 2017, 08: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: 7615
    • jinxtergames
Re: mouse look incompatible with ui
« Reply #3 on: November 10, 2017, 04: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?


Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: mouse look incompatible with ui
« Reply #4 on: November 10, 2017, 08: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: 7615
    • jinxtergames
Re: mouse look incompatible with ui
« Reply #5 on: November 11, 2017, 01:25:41 PM »
Hi,
What actions do you use to control the joysticks?

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: mouse look incompatible with ui
« Reply #6 on: November 11, 2017, 02: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