Timeline for how to transform the position of an object
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11, 2015 at 9:45 | vote | accept | Manoj Balaji M | ||
Dec 11, 2015 at 9:34 | comment | added | Nika Kasradze |
then you can do: Vector3 pos = sideLft.transform.position; pos.y = -50f; sideLft.transform.position = pos;
|
|
Dec 11, 2015 at 9:30 | comment | added | Manoj Balaji M | yes, I also did the same. now the problem is i want to change and reset only y position . if i gives sideLft.transform.position = new vectro3 (0,-50,0); Means the game object x position is moving to 0. | |
Dec 11, 2015 at 8:50 | history | answered | Nika Kasradze | CC BY-SA 3.0 |