兩個方法:一是分別改變ScrollView的localPosition和UIPanel的clipOffset,只改變一個值的話,窗口位置會變,所以使用的時候,是設置相反的兩個值。
二是使用SpringPanel.Begin(GameObject go, Vector3 pos, float strength),設置UIPanel初始位置
注意一定要在scrollview的ResetPosition和grid的repositionNow之后來做,不然有重置位置了
兩個方法:一是分別改變ScrollView的localPosition和UIPanel的clipOffset,只改變一個值的話,窗口位置會變,所以使用的時候,是設置相反的兩個值。
二是使用SpringPanel.Begin(GameObject go, Vector3 pos, float strength),設置UIPanel初始位置
注意一定要在scrollview的ResetPosition和grid的repositionNow之后來做,不然有重置位置了