当前位置:网站首页>Unity UI scrollbar component

Unity UI scrollbar component

2022-06-09 19:54:00 Pork balls~

Unity-UI-Scrollbar Components

Future game development program yuan , Now I'm trying my best to learn vegetables and chicken
This column is used to record my recent study of game development
This is Unity-UI-Scrollbar Components

1、 Basic knowledge of

 Insert picture description here

More official :

attribute function
Interactable Whether this component accepts input
Transition Properties that determine how the control visually responds to user actions
Navigation Properties that determine the order of the controls
Handle Rect For control sliding “ Handle ” Partial graphics
Direction The direction in which the scroll bar value increases as you drag the handle
Value The initial position value of the scroll bar , The scope is 0.0 To 1.0
Size The proportional size of the handle in the scroll bar , The scope is 0.0 To 1.0
Number Of Steps The number of different scroll positions allowed by the scroll bar .

An easy to understand explanation :
Interactable、Transition、Navigation: and Button Same as in component , Already in Button Partially recorded — Unity-UI-Button Components
Handle Rect: Control the red part ( That is, the handle ) Pictures of the 、 Color, etc. .
 Insert picture description here
Direction: Controls the movement direction of the handle , Yes, from left to right , From right to left , From the top down , From bottom to top .
Value: The position of the slider where the handle is located .
Size: Proportion of the control handle to the entire slider , It is used to adjust the size .
Number Of Steps: The number is equivalent to dividing the slider into several equal parts , The control handle can only slide one by one .
When the value is 0 and 1 when , The control handle can slide freely .
 Insert picture description here
When the value is 2 when
 Bold style
When the value is 3 when
 Insert picture description here
And so on , The same is true for the back

原网站

版权声明
本文为[Pork balls~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091947157673.html