97neko
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 16159 |
|
|
| 01 May 2015 10:56 PM |
| and how do i "index" something in unity. like, make a variable for a text UI |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 01 May 2015 11:11 PM |
| Ask this on another forum from the internet, not roblox. Lol. |
|
|
| Report Abuse |
|
|
|
| 01 May 2015 11:15 PM |
for (i = 0; i < 5; i++) {
}
5 is how many times it will loop i++ is the increment |
|
|
| Report Abuse |
|
|
|
| 01 May 2015 11:16 PM |
He can ask here and I'm perfectly fine with it
for (i = 0; i <= max; i++) { // i++ is adding one do i console.log(i)
} |
|
|
| Report Abuse |
|
|
97neko
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 16159 |
|
|
| 01 May 2015 11:17 PM |
So is their a reason this does nothing?
var Title = "When they Scream";
for (i = 0; i < Title.length; i++) { var test = Title.substring(0, i); Debug.Log(test); WaitForSeconds(.2); } |
|
|
| Report Abuse |
|
|
|
| 01 May 2015 11:19 PM |
| no idea, even ran the code in a code runner and it didnt do anything |
|
|
| Report Abuse |
|
|