Question by
robert97mc · Nov 13, 2015 at 01:21 AM ·
variables
Change variable value while running.
Hi, first of all my english is bad but i will try best.
so here is the deal, for example i have one object that is rotating around one axis with speed of 100. so can someone teach how can i have ingame text area where i can type another number (example 200) and press enter and change the speed to the number i typed in text area
Comment
Answer by MobinYaqoob · Nov 13, 2015 at 07:00 AM
Just make a variable public and you get the access it in editor. public float speed = 100; then atach this script to a gameobject and you should see a speed field now you can change it during game play :)