playMaker

Author Topic: trigger UI gameobject[SOLVED]  (Read 1085 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
trigger UI gameobject[SOLVED]
« on: December 14, 2019, 04:14:46 AM »
Hi, how do I let a 2d box collider in my scene to trigger event a UI gameobject?

I am using a drag drop on the UI object and wanting the 2d box collider to trigger by the UI object when I drop it.
« Last Edit: December 24, 2019, 01:49:43 AM by jeanfabre »
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: trigger UI gameobject
« Reply #1 on: December 14, 2019, 04:44:30 AM »
Hi.
Maybe Mouse Pick can be used.
But you might need to temporary turn off 'raycast target' on the ui that you are dragging.
You can do this wit 'Ui Canvas Group Set Properties'

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: trigger UI gameobject
« Reply #2 on: December 17, 2019, 08:49:51 AM »
Hi.
Maybe Mouse Pick can be used.
But you might need to temporary turn off 'raycast target' on the ui that you are dragging.
You can do this wit 'Ui Canvas Group Set Properties'

Yes Mouse pick works, thanks :)
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio