当前位置:网站首页>The difference between sprite and overridesprite in unity image (Reprint)
The difference between sprite and overridesprite in unity image (Reprint)
2022-07-23 10:33:00 【ۓ Mingzhe ڪ】
Unity Image.sprite And Image.overrideSprite The difference between
Override sprite is for it you want to quickly set a image without changing the original. If you want to change something on a permanent basis use sprite.
by phil-Unity (Unity UI Lead Developer) src
According to the official statement ,overrideSprite Used to temporarily modify pictures ,sprite For permanently modifying pictures .
It can be understood in this way :overrideSprite For modifying pictures , But it won't eliminate the original picture , The direct effect is if overrideSprite yes null Words , Will change back to the original picture . It can be understood as overrdieSprite Is covered in sprite A layer of pictures on . therefore , If you use overrideSprite Change pictures , Next, you can only use overrideSprite Cover it again , Unless it is set to null, Otherwise use sprite The replacement cannot be displayed .
Reference material
- UI.Image change sprite on script
- Image Medium overrideSprite and sprite What's the difference ?
- Unity3D: Changes in code Sprite
- UGUI Dynamic change in the market image Of sprite
- Image.overrideSprite
- Image.sprite/overrideSprite not changing
- Manually Update/Redraw Scene View?
transform.Translate(new Vector3(0,0,0));How do you force redraw?
Reprint source : http://t.csdn.cn/2qTOy
边栏推荐
- How to improve browsing security? Teach you to set up a secure browser trust site
- Redis安装
- vs中新建文件/筛选器/文件夹
- What is the difference between College coder and 985 programmer?
- NFT数字藏品版权如何保护?
- 32-spark的分区算子介绍、广播变量和累加器
- These four key technologies are necessary to realize the unified management of urban governance through one network
- Kingbasees SQL language reference manual of Jincang database (8. Function (8))
- Network communication principle and IP address allocation principle. The seven layers of the network are physical layer, data link layer, network layer, transmission layer, session layer, presentation
- SAP 批导模板(WBS批导为例)
猜你喜欢

Anaconda source change and opencv installation

MySQL three table query problem

Kingbasees SQL language reference manual of Jincang database (8. Function (7))

ARP Spoofing protection of network security

宇视NVR设备接入EasyCVR平台,离线后无法上线该如何解决?

Online English learning system based on s2sh+mysql

Sonar中如何删除一个项目

赛尔运维:高校IT运维服务新样本

Practice of online problem feedback module (11): realize image download function

Reverse theoretical knowledge 1
随机推荐
MySQL基础篇(运算符、排序分页、多表查询、函数)
Flask学习笔记
Redis transaction, lock mechanism, seckill
科技赋能新保险:中华财险的数字化转型
什么是文件管理软件?你为什么需要它?
【学习笔记】图论思维题
Bosch Bosch EDI project case
RDB和AOF的优缺点
"Lost wake up problem" in multithreading | why do wait() and notify() need to be used with the synchronized keyword?
Online English learning system based on s2sh+mysql
CS5266+MA8621做TYPEC转HDMI+PD+U3+2U+SD/TF七合一拓展坞方案设计|CS5266多口拓展坞PCB+原理图参考
MD5加密解密网站测试,MD5加密还安全吗?
MySQL three table query problem
RTC 性能自动化工具在内存优化场景下的实践
c# 字节数组和类相互转换
两个海量数据的同构表,如何查询数据差异
Kingbasees SQL language reference manual of Jincang database (8. Function (I))
Network communication principle and IP address allocation principle. The seven layers of the network are physical layer, data link layer, network layer, transmission layer, session layer, presentation
Kingbasees SQL language reference manual of Jincang database (8. Function (V))
Use and implementation of enumeration classes