Translations:UIX/28/en
Jump to navigation
Jump to search
- Add a child to your canvas (or layout or whatever) and call it Mask.
- In that object, Attach Component > UIX > Mask. This effectively makes any graphical elements from children that wander outside the RectTransform invisible.
- In the same object, Attach Component > UIX > Graphics > Image.
- Turn on the Mask's ShowMaskGraphic property.
- Add a child to the Mask object and call it ScrollRect.
- In that object, Attach Component > UIX > Interaction > ScrollRect.
- In the same object, Attach Component > UIX > Layout > ContentSizeFitter.
- Set the ContentSizeFitter's VerticalFit property to MinSize.
- In the same object, Attach Component > UIX > Layout > VerticalLayout.
- Add a child to the ScrollRect object and call it Content.
- In that object, Attach Component > UIX > Graphics > Text.
- Change the text to what you want. Typically for long text that you get from a file, you would import a text file from your computer, inspect the result, navigate to the text component (object > ScrollRect > Content), and grab and drag the Text component's Content property into your object's Text Content.
- Alter the font size, set up autosize, change the alignment to what you want.
- Change the font color to something that will show up against the mask image color!