Hi,
I’m very new to Unity, anything I’ve done so far has pretty much worked out of luck. This might be really simple but I’m struggling to find a way to do it.
Basically, I want the user to be able to click a button which prompts them to enter a number of minutes. I then need to grab that number and tell the script this is how long it should take for this slider to go from A to B. I’ve got the code for the slider worked out and everything works, the only issue is I’ve had to specify the duration time and it can’t be changed outside of Unity.
How would I go about asking for a number on a click, then using that number in a script?
Sorry if this is super simple or badly explained!
Thanks!
Use an input field. Display it when they click. Collect that value and use it as you like. This is actually very very easy, but if you have literally no coding experience, it might not be as easy as ‘EZ’.
If you really can not sort this one out, find me on Discord. I’ll give you a hand.
JD#1539
1 Like
Thanks for the reply! Tbh it does sound like something that should be easy enough but I just didn’t know how to attack it. I’ll give it a try using the method you said and if I can’t get there, I’ll give you a shout on Discord. Thanks, appreciate it!
1 Like