UI Button Flashcards

1
Q

“the button…”

A

“detects user input, and can trigger an event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

must be a child of

A

a canvas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

button element requires:

A
  1. image script

2. button script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

interactable

A

checkbox of button script; determines whether button accepts input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

the normal state is automatically set by

A

the image component attached to the button element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

transition mode

A

determines what the button looks like in a transition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

color tint

A

default transition mode; same graphical element is used for each state.
target graphic: image to be tinted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

normal, highlighted, pressed, disabled

A

determine color tint of each state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

sprite swap

A

uses different sprite image for each state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

animation

A

transition between states with animation. need to attach animator component to button element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

edit animation

A

in animation window, different animations for each state.

E.g.: in record mode, can change width for highlighted state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

navigation controls and UI

A

how the selection of UI elements is handled when using keyboard|controller input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

navigation mode can be set to

A

automatic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

event system

A

part of UI framework

new event system added to scene when canvas created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

onClickEvent

A

part of event system, called when UI element detects press+release

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

On Click

A

part of button element; contains list of functions to call when button is clicked

17
Q

if you add addition component

A

additional events can be detected and used by the button element