当前位置:网站首页>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
边栏推荐
- idea jar包冲突排查
- Practice of traffic recording and playback in vivo
- [fluent] dart language (DART language features | JIT instant compilation | AOT static compilation)
- 触发器:Mysql实现一张表添加或删除一条数据,另一张表同时添加
- 一文读懂AGV的关键技术——激光SLAM与视觉SLAM的区别
- OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
- Set the background picture in the idea (ultra detailed)
- Aike AI frontier promotion (2.15)
- Summary of monthly report | list of major events of moonbeam in June
- 头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
猜你喜欢
Text intelligent expansion and contraction control of swiftui text component (tutorial includes source code)
dried food! Understand the structural vulnerability of graph convolution networks
总结|机器视觉中三大坐标系及其相互关系
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
Today in history: Alipay launched barcode payment; The father of time-sharing system was born; The first TV advertisement in the world
【5G NR】RRC连接释放
历史上的今天:支付宝推出条码支付;分时系统之父诞生;世界上第一支电视广告...
Understand the key technology of AGV -- the difference between laser slam and visual slam
SSM整合-异常处理器及项目异常处理方案
电脑设备打印机驱动安装失败如何解决
随机推荐
JS learning notes - variables
mysql数据库mysqldump为啥没有创建数据库的语句
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
数仓中的维度表与事实表
数学分析_笔记_第5章:一元微分学
idea jar包冲突排查
Yyds dry inventory KVM new inventory to expand space for home
电脑管理员权限在哪里可以打开
解决** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the defau
Flink real-time data warehouse (IX): incremental synchronization of data in MySQL
数学分析_笔记_第6章:一元函数的Riemann积分
mysql min() 求某条件下最小的值出现多个结果
Song of cactus - throwing stones to ask the way (2)
Multi data source configuration code
Figure database | Nepal graph v3.1.0 performance report
Yyds dry inventory company stipulates that all interfaces use post requests. Why?
头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
Win11应用商店无法加载页面怎么办?Win11商店无法加载页面
微信v3native支付设置的结束时间处理办法
Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)