当前位置:网站首页>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
边栏推荐
- Regular match the phone number and replace the fourth to seventh digits of the phone number with****
- OpenStack学习笔记-Glance组件深入了解
- Solve the problem that yarn cannot load files in vs Code
- Configuring pytorch in win10 environment
- Rust,程序员创业的最佳选择?
- 解析數倉lazyagg查詢重寫優化
- Sword finger offer 04 Find in 2D array
- 数据库中显示error1822,error1824
- leetcode:456. 132 模式【单调栈】
- Cold migration and resize of Nova component source code analysis
猜你喜欢

关于一道教材题的讲解

New Gospel of drug design: Tencent, together with China University of science and technology and Zhejiang University, developed an adaptive graph learning method to predict molecular interactions and

坡道带来的困惑

Implementation of a small book system

AGCO AI frontier promotion (6.25)
Deep parsing and implementation of redis stream advanced message queue [10000 words]

Summer Ending

关于结构体,枚举,联合的一些知识

Conway's law can not be flexibly applied as an architect?

leetcode:918. 环形子数组的最大和【逆向思维 + 最大子数组和】
随机推荐
API in Nova
Confusion caused by the ramp
sql导入这样怎么解决
Back test of quantitative trading - example of futures CTA strategy (tqzfuturerenkoscalpingstrategy)
Cesium model Daquan glb/glft format
【Proteus仿真】51单片机+DS1302+lcd1602显示
Cesium--- figure loading
Fedora 35 deploys DNS master-slave and separation resolution -- the way to build a dream
Pointer, it has to say that the subject
Conway's law can not be flexibly applied as an architect?
《MongoDB入门教程》第01篇 MongoDB简介
指针,它那些不得不说的题目
The starting point for learning programming.
Summary of leetcode linked list problem solving skills
Unity 2D游戏中的抛物运动
Introduction to string 18 lectures Collection 4
Openstack learning notes (II)
Solution to Nacos' failure to modify the configuration file mysql8.0
Stockage des données en mémoire
QT mouse tracking