It’s literally my first time using Unity, and I’m following a tutorial.
I’m trying to create a kind of “invisible joysitck” so when the player drags the finger across the screen the sprite moves accordingly with it.
I’ve created this scrip:
(I don’t think the content of the funtctions is relevant)
And then attached it to the invisible joystick (“MovementJoystick” in the hierarchy system):
But when I attach an Event Trigger component and try to bind, for example, PointerDown EVENT with PointerDown() MY FUNCTION, my function is not there:
(My custom functions arn’t in any of the drop-down menus, I wont post 4 screenshots to save space)
I’ve found forums about attatching the GameObject containing the script (to the EventTrigget) instead of the script itself, but not about this issue, can someone enlighten me?
Thanks in advance.