Building the galleries
We are now ready to build our galleries. To do so, take the following steps:
- Select the
Gallery
GameObject and add a child object by right-clicking and choosingUI
|Text
. This will create a new text object within ourGallery
object. Adjust the text object's attributes as follows:- Rename the object
CategoryTitle
. - Set the Y position to
252
in the Rect Transform component. - Replace the
New Text
text in theText (Script)
component toCategory Title
. It should be noted that this text is a placeholder and the actual title will be set using a script. - In the
Character
section, choose aFont
andFont Style
to your liking. - Set the
Horizontal
andVertical Overflow
toOverflow
underParagraph
. TheDefault
value,Wrap
, will attempt to display the category name within theText
space. Changing this value now will make it easier to determine the necessary font size. - Set the
Font Size
to60
or a size appropriate for your text.
- Rename the object
Note
If the Horizontal Overflow
and Vertical Overflow
values are...