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?
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?
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.