Create a script that will reference your clipped panel and attach it to all of your items. Inside the script check the distance to the clipped center and set the scale accordingly.
Thank you for your reply.
I am not sure about clipped center stuff.
I have tried but it did not work.
So confusing....
I want to make it move like a wave.
void Update () {
//I put UIDraggableContent objects in the list. The center object's scale must be 1 (biggest)
for(int i=0; i<list.Count; i++)
{
var position = list[i].transform.localPosition;
var center = list[i].GetComponent<UIDragPanelContents>().draggablePanel.panel.clipRange.x;
var diff = Mathf.Abs(position.x - center);
var scale = diff/center;
list
[i
].transform.localScale = new Vector3
(scale,scale,
1);
}
}
the thing that I got was the object sizes were bigger respectively.
I wonder if it possible for object to overlap when scroll the panel. (<-- that is also what I want)
When the objects were scaling, the space between them were still same.
Is it possible to change space dynamically?