当前位置:网站首页>Untiy force refresh UI
Untiy force refresh UI
2022-06-25 13:35:00 【Wuzimu】
In the direction of an adaptive content length text Add text to , And put text Put it in the scrolling window , Discover though text The size adaptive expansion of , But in scroll view There is no first line in the , And it shows the middle , At this time, just change one scroll view Properties of ,text Will bounce back to the first line , This indicates the creation scroll view when , No refresh text, Lead to scroll view Think text Or the size before expansion , At this time, we just need to force a refresh UI that will do
LayoutRebuilder.ForceRebuildLayoutImmediate(contentText.rectTransform);
This is a static method , The parameter is refreshed UI Of rectTransform
边栏推荐
- 一篇文章讲清楚MySQL的聚簇/联合/覆盖索引、回表、索引下推
- Explanation of a textbook question
- Scope of ES6 variable
- 语法'陷阱'
- Restful and RPC
- [pit avoidance means "difficult"] actionref current. Reload() does not take effect
- Some knowledge of the initial C language
- Configuring pytorch in win10 environment
- 关于猜数字游戏的实现
- Conway's law can not be flexibly applied as an architect?
猜你喜欢

坡道带来的困惑

Custom vertical table

删库跑路、“投毒”、改协议,开源有哪几大红线千万不能踩?

关于猜数字游戏的实现

Sword finger offer II 029 Sorted circular linked list

Configuring pytorch in win10 environment

Introduction to mongodb chapter 01 introduction to mongodb

NR-ARFCN和信道栅格、同步栅格和GSCN

The priority of catch() and then (..., ERR) of promise
![leetcode:456. 132 mode [monotone stack]](/img/fa/44a5194b244f30383409ef40966453.png)
leetcode:456. 132 mode [monotone stack]
随机推荐
Fedora 35 deploys DNS master-slave and separation resolution -- the way to build a dream
关于猜数字游戏的实现
关于一道教材题的讲解
Rust, le meilleur choix pour un programmeur de démarrer une entreprise?
【Proteus仿真】51单片机+DS1302+lcd1602显示
數據在內存中的存儲相關內容
Uncover gaussdb (for redis): comprehensive comparison of CODIS
Unity 2D游戏中的抛物运动
Custom vertical table
[pit avoidance means "difficult"] antd select fuzzy search
QT display ffmpeg decoded pictures
關於數據在內存中的存儲下
SSH secret free function for # scripting
Golang keyboard input statement scanln scanf code example
AGCO AI frontier promotion (6.25)
Which Chinese virtual human is better? Sullivan, IDC: Xiaobing Baidu Shangtang ranks in the first echelon
三行代码简单修改jar包的项目代码
关于三子棋游戏的简易实现与N子棋胜利判断方法
leetcode:剑指 Offer II 091. 粉刷房子【二维dp】
Replace element - counter use of content (2)