PlayMaker Help & Tips > PlayMaker Help
Layer Mask in Mouse Pick !
san:
Hello, I am having this small problem with MousePick Layer mask.
On screen I have a button... and Mouse pick Object is overlaying every-time i press a button.
But on Button I have UI layer and I try using Layer Mask invert Mask turn on/off doesn't work. I don't know how to stop Mouse Pick Object is overlaying every-time i press a button. Please help. Thanks
djaydino:
Hi.
Mouse pick does not work on ui.
The is an action called 'Is Pointer Over Ui Object'
you can use this to disable/enable Mouse pick.
so that if you are over a button the 'fsm with the 'mouse pick can be disabled
san:
hmmm... So the "is Pointer Over Ui Object" work ~!
A few more issue ~! maybe this is a bug.. i am not sure...
In Canvas, I have two buttons...
Button ONE - doesnt have any playmaker FSM actions.. Empty ~!
Button TWO - does have FSM action with "is Pointer Over UI Object", In this action I did ON/OFF with "active game Object" and it work ~! But not working with Set Property - Playmaker FSM Active ON/OFF in iPhone. is this a bug? On my iMac Set Property work fine~!
And when i Tested on iPhone... Active Game Object ON/OFF is work on Button ONE as well... But Button ONE doesn't have "is Pointer Over UI Object" action. Only Button Two does.
For example, If i press Button TWO... the touch Object is doing OFF.. and if I let go Button TWO... Touch object Turn ON. But it doing same thing in Button ONE as well, but Button One doesnt have any fsm action.
So "is Pointer Over UI Object" action work on entire iPhone screen? or is it because both Buttons are in a same Canvas ?
san:
i found some solution with Linker wizard for set/get property... its working now!
djaydino:
Hi.
You should minimize using Get/Set Property actions.
They work slower than dedicated actions as they use mirroring and indeed you need to use linker wizard and play the whole game to make sure that all are 'recorded' by the linker wizard.
i believe there is a standard 'Enable Fsm' action.
If not, you can find it on the Ecosystem
Navigation
[0] Message Index
[#] Next page
Go to full version