Hello, I have a next gameobject hierarchy:
EDIT: Be aware: The screen is indicated by 4 arrows pointing at 4 corners of the 2 images I gonna post next.
Canvas :::: UI Scale Mode: Scale With Screen Size
l
Scroll View :::: Anchors: Stretch, Stretch , left:0 , right:0 , top:0, bottom: 0
l
Viewport :::: Anchors: Stretch, Stretch , left:0 , right:0 , top:0, bottom: 0
l
Content :::: Anchors: Stretch, Stretch , left:0 , right:0 , top:0, bottom: 0
Content has: (beside 3 childerns (Image components)) :
Horizontal layout group: Child Alignment: Middle Center
Control Child Size: Width (checked), Height(checked)
Use Child Scale: Width (not checked), Height(not checked)
Child Force Expand: Width (checked), Height(checked)
And i get this result:
Instead of this:
`
Why is a child fit to screen, instead of having the size of the screen and side to side to one another?
How can I do this?
EDIT: What I actually want to achieve, is to have an array of gameobjects with an Image component, that is always having a screen size and be placed side by side to one another. And when I slide left or right on my screen, to move images left or right (that’s why I put it in scroll view’s content).