当前位置:网站首页>Unity uses ugui to set a simple multi-level horizontal drop-down menu (no code required)
Unity uses ugui to set a simple multi-level horizontal drop-down menu (no code required)
2022-07-02 16:25:00 【Yun Xiaochuan】
Reference resources :Unity Use UGUI Set up a simple multi-level drop-down menu ( No code needed )_Y-Jin heart The blog of -CSDN Blog
We need to understand these unity Know something about components : Yes ScrollRect 、Mask 、Horizontal Layout Group Content Size Fitter GridLayoutGroup
design sketch :
Specific implementation steps :
1. establish Image As parent node , To parent node Add corresponding components
2. Create an empty object , For the father's day point object , Add corresponding components
Child Controls Size:width After checking, the box of sub object cannot be customized , It can only be the same as the current object , Gao Tongli
Child Force Expand: Select this sub object to automatically expand
Below Content Size Fitter, Must mount
3. establish Toggle Control display
4. establish Itme Sub object list , my Itme It's multi line , If it is a submenu , Components GridLayoutGroup Switch to Horizontal Layout Group
5. matters needing attention : Because of the above Horizontal Layout Group It is sorted in order
边栏推荐
- [Xiaobai chat cloud] suggestions on container transformation of small and medium-sized enterprises
- OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
- 忆当年高考|成为程序员的你,后悔了吗?
- 绝对真理和相对真理思考
- Invalid bound statement (not found) solution summary
- Huawei ECS installs mysqlb for mysqld service failed because the control process exited with error code. See “sys
- Does bone conduction earphone have external sound? Advantages of bone conduction earphones
- Sqlserver queries which indexes are underutilized
- Yyds dry goods inventory hands-on teaching you to carry out the packaging and release of mofish Library (fishing Library)
- [fluent] dart data type string type (string definition | string splicing | string API call)
猜你喜欢
Add user-defined formula (time sharing t+0) to mobile app access as an example
Storage, reading and writing of blood relationship data of Nepal Graph & Data Warehouse
去除router-link中的下划线
Processing gzip: stdin: not in gzip format: child returned status 1tar: error is not recoverable: exitin
一文读懂AGV的关键技术——激光SLAM与视觉SLAM的区别
做机器视觉哪个软件好?
The median salary of TSMC's global employees is about 460000, and the CEO is about 8.99 million; Apple raised the price of iPhone in Japan; VIM 9.0 releases | geek headlines
Practice of constructing ten billion relationship knowledge map based on Nebula graph
Text intelligent expansion and contraction control of swiftui text component (tutorial includes source code)
idea 公共方法抽取快捷键
随机推荐
Aike AI frontier promotion (2.15)
Summary | three coordinate systems in machine vision and their relationships
源码look me
day4
Boot 事务使用
Effectively use keywords to increase Amazon sales
How to use stustr function in Oracle view
多数据源配置代码
电脑设备打印机驱动安装失败如何解决
(practice C language every day) the sum of the nearest three numbers
2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time
处理gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exitin
Text intelligent expansion and contraction control of swiftui text component (tutorial includes source code)
False summer vacation
Write your own CPU Chapter 11 - learning notes
JS learning notes - process control
SSM整合-异常处理器及项目异常处理方案
What is Amazon keyword index? The consequences of not indexing are serious
数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙
Introduction to database system Chapter 1 short answer questions - how was the final exam?