- Home /
sprites shrink when add to child of UI canvas
I'm trying to dynamically add sprites to a UI scrollview I have set up. They are aligned correctly and display, but they are significantly smaller than when outside of the canvas. Anyone know why this happens?
Edit: maybe it's because I'm using screen space - camera, and that's causing the entire UI to scale down.
Answer by aditya · Apr 22, 2016 at 05:02 AM
sprites are nothing but simple pixels when we are talking about UI actually it is your UI component which is shrinking and this happening because you've setup your scrollview like this .... apply a proper layout to your scrollview content
Well I have it set up with a horizontal layout, where the children added have a layoutelement component to align them
Your answer
Follow this Question
Related Questions
UI Sprite location changes its appearance. 0 Answers
Scrollview Without Canvas 1 Answer
Unity UI photo gallery 0 Answers
My text is invisible if I put it under the Content object under a Scroll View 1 Answer
Sprite import problem? 1 Answer