hotozi
1
i simply want to conver a object name to string so i can use my variable that is a string to be the same as the name…
var Ome:String;
Ome=gameObject.name;
doesn work i tried
var Ome:String;
Ome=gameObject.name.ToString();
still not working…
Daten
2
Try gameObject.transform.name;
Reizla
3
Good one! Was looking for it myself. to determine what object of 4 I currently have (numbered in name). Sadly though the (char)“1” converts to (byte)49, but at least that’s easily to correct 