PlayMaker Help & Tips > iOS Help
How to enable touch event for GUI button[SOLVED]
(1/1)
InfusedNL:
Hi there,
At the moment I am building an AR app for iOS using ARfoundation, as I want to export it to Android later on, and I have a world space UI with two buttons which I want to use to show or hide an object.
However, which Playmaker action can I use on these buttons to detect a button press/touch? In this tutorial (//www.youtube.com/watch?v=iSTr5ehQlBk the instructor uses 'Touch GUI Event'. But when I look it up in my Unity project it says it is a legacy action and will be removed in future releases.
So my question is which function do I have to use instead of the legacy one to detect touches?
Best regards,
Christiaan
djaydino:
Hi.
yeah that is pretty outdated.
if you have the buttons with the new ui (inside the canvas)
You can use the UI Button On Click Event
InfusedNL:
Hi Djaydino,
Thanks for the quick response! I have been stuck on this for days trying to figure out what to use, you made my day! :)
Best regards,
Christiaan
Navigation
[0] Message Index
Go to full version