Dynamic Scroll List Item has weird z position.

Hi,

So I’m trying to populate my scroll list from a database of some sort. I’m using the content fitter and layout to automatically adjust the transform of the items. All are working perfectly except for the fact that the z position of the items are strangely set to -900ish. How can I fix this?

Thanks in advance.

@bawenang - Hi,

I haven’t noticed such behavior, have you tried just setting the position with Z value set to zero?

Bit hard to say anything else without knowing / seeing more (world space / screen space, components used and so on).

This happens when rect transform of the gameobject that has the scroll rect is on a stretch instead of a fixed width / height. Actually even the content of the scroll rect is on a stretch, as are almost all of the UI in my scene. Is this the cause? If so, how do I make it work with a stretched transform?

Thanks.

Oh yeah btw, besides the z position, sometimes the scale of the item is not correct. Unity automatically scaled / repositioned the z pos under the hood so I don’t know why this is happening. My fix so far is some sort of a hack that will reposition and rescale the item using a co routine.