User Interface Flashcards
What is the purpose of a canvas?
Provide an area in which to place all UI elements.
How does “Screen Space - Camera” Render Mode differ from “World Space”?
The former places the UI a fixed distance in front of the camera.
Which Render Mode requires you to link the Render Camera?
Screen Space - Camera
Which Texture Type do we need to use for an image asset that will be used in the UI?
Sprite
Describe the anchor.
Relatively defined rectangle as a starting point for the fixed offsets.
What is the purpose of the pivot?
The location about which we scale and rotate.
Where do you find the text properties of a button?
In a separate child GameObject.
What do you need to do to a button sprite so that it can scale properly?
Position the borders inside the borders of the button.
When using the “ColorTint” Transition option, how do colours change the image?
By multiplying
If an image is too high resolution, how can you scale it down?
Increase the Pixels Per Unit of the image asset.
What do the Transition options apply to?
Just the handle.
Which GameObjects make up a slider?
A background image, fill image a handle image.
How does the slider change the size of the Fill GameObject?
By keeping a reference to its Rect Transform.
How would you change the colour of the slider fill?
Change the colour on the slider fill child object.