PlayMaker Help & Tips > PlayMaker Help

mouse look incompatible with ui [SOLVED]

(1/2) > >>

Ofonna:
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

jeanfabre:
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:
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:
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:

--- Quote from: djaydino 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?

--- End quote ---

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

Navigation

[0] Message Index

[#] Next page

Go to full version