Hi,
I’m building a little list of items inside a ScrollRect and would like to jump to any of them giving an index.
Based on inspector my items are 56x56 and the container has a width of 932. As an example I have tried to jump to an item manually (5th item in this example) just by setting normalizedHorizontalPostion to (556)/932. But this seems not quite right. If I set the Content rect position to -556 it shows my item at correct position (in the inspector) but when i try to set this through the scrollrect normalized horizontal position I can see in the inspector that the container is not jumping to the expected position.
Is there anything I am missing? Must I have any other internal screen rect or container rect position variables into account for this?.
Cheers.