Move GameObject inside ScrollView (NGUI) (C#)

Hi,

I’m trying to move specific game object in ScrollView Grid to the edge of ScrollView Panel when clicked. I’ve tried using transform.position but it spoils the Grid. Is there any way to move object inside the grid, and then place it back in the correct position?

From my experience the best way to move NGUI elements is by using tween position script (NGUI). On click you get UITween component and call PlayForward() method, and when you decide to put it back in the origin just call PlayReverse(). In order to prevent it from moving on play just disable the component, PlayForward will enable it automatically.