How to move StandardAssets joystick to where player taps

Is there any way to get Unity’s StandardAssets joystick to move to where the player first taps, instead of being locked to a specific position? Kind of like the joysticks for the mobile version of Terraria. The same question was asked here, Change the position of the Joystick by tap - Questions & Answers - Unity Discussions but the person who asked linked to code on a page that no longer works, so I can’t see how they did it.

I found the solution to this myself. Rather than adapting the standard Unity mobile joystick code to match what I was looking for here, I simply used Fenerax Studios’ Joystick Pack and changed a few things around to match my game.