当前位置:网站首页>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
边栏推荐
- 处理gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exitin
- Yyds dry inventory KVM new inventory to expand space for home
- Leetcode -- number of palindromes
- mysql min() 求某条件下最小的值出现多个结果
- Boot transaction usage
- PyC file decompile
- PCL 点云镜像变换
- Kubernetes family container housekeeper pod online Q & A?
- AWS virtual machine expansion
- 关于mysql安装的一些问题
猜你喜欢
What is the difference between self attention mechanism and fully connected graph convolution network (GCN)?
Boot 事务使用
Write your own CPU Chapter 11 - learning notes
Today in history: Alipay launched barcode payment; The father of time-sharing system was born; The first TV advertisement in the world
结构体的内存对齐
Vscade set multi line display of tab
TypeScript数组乱序输出
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
随机推荐
OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation
Route service grid traffic through two-level gateway design
Yyds dry goods inventory hands-on teaching you to carry out the packaging and release of mofish Library (fishing Library)
Thinking about absolute truth and relative truth
In memory of becoming the first dayu200 tripartite demo contributor
Bib | graph representation based on heterogeneous information network learning to predict drug disease association
月报总结|Moonbeam6月份大事一览
Group by的用法
What is Amazon keyword index? The consequences of not indexing are serious
外企高管、连续创业者、瑜伽和滑雪高手,持续迭代重构的程序人生
Best practices for building multi architecture images
The light of ideal never dies
Boot 事务使用
Dimension table and fact table in data warehouse
曆史上的今天:支付寶推出條碼支付;分時系統之父誕生;世界上第一支電視廣告...
Yyds dry inventory method of deleting expired documents in batch
Kubernetes family container housekeeper pod online Q & A?
做机器视觉哪个软件好?
Summary of multithreading and thread synchronization knowledge
Sqlserver queries which indexes are underutilized