- Home /
Using the Unity UI system, is it possible to create a scrollrect that fits its content until a max. height is reached (within a panel that fits its content)?
Hi everyone
I'm trying to create the UI for a dialog system. There's a panel that automatically fits its size to the content. Within this panel there are two more panels that fit the size to their content, but one of them should behave like a scrollrect after a certain height is exceeded. Solutions provided within Unity Answers and the Unity forum do not solve the problem of having the scrollrect panel within another panel that fits its content. Is what I want to do even possible without coding?
This is the hierarchy I set up.
This is the desired behaviour.
Here you can find a Unity Package file containing the whole UI setup (AnswersPanel currently just fits its content). http://kruda.ch/UITest.unitypackage
Cheers David
Your answer
Follow this Question
Related Questions
Stoping camera when character is falling. 1 Answer
Scrollable panel does not work after disable and enable action 0 Answers
Text Preferred Height not expanding even with content size fitter 0 Answers
Max Height Of Mountains 2 Answers
Scroll Rect is "weighted" and doesn't let players scroll up very far 2 Answers