Hi there! I’ve followed the tutorial here on how to use the Virtual Joystick Package to move a player, but I was wondering how to attach it to a clone of the player that gets instantiated.
My scenario: I have a menu that contains a button that spawns a car. This button also disables the menu and enables the HUD (where the joystick lives). I’d like to now be able to use the joystick to control this instantiated car, but have to pause the game and drag the joystick from the hierarchy into the joystick inspector slot for it to function on my car.
I’ve tried attaching the joystick prefab to the player prefab (not expecting it to work) and have also looked extensively on Google for an answer… but I might be too much of a noob to wrap my brain around it. I’m sure the answer is actually quite simple (especially for you folks!) Can anyone point me in the right direction at least? I’d really appreciate it. =) Thanks in advance!