I have a gameobject, when clicked it will run a function. But the method I implemented in the screenshot doesn’t work (the function isn’t being called).
Is using event trigger the problem?
by user 761182854012731394
I have a gameobject, when clicked it will run a function. But the method I implemented in the screenshot doesn’t work (the function isn’t being called).
Is using event trigger the problem?
by user 761182854012731394
Hello, the EventTrigger component is not implemented i think. You can check by clicking the blue EventTrigger link. For running a function/event on click you can also just add a Button component to the gameobject
Thanks @Marcel_Wiessler1 . Looking forward for the
EventTrigger
implementation
by user 761182854012731394
In case that was not clear, you can remove EventTrigger and add a Button component and set up the event there, that will work already
Yup Button component works fine
by user 761182854012731394