当前位置:网站首页>On scale of canvas recttransform in ugui
On scale of canvas recttransform in ugui
2022-06-11 20:11:00 【iningwei】
Preface
Canvas Of Rect Transform Component's Scale Values and Canvas Component's Render Mode Setup related .
When it comes to Screen Space - Overlay when Scale The value is 1, Non modifiable .
When it comes to World Space When ,Scale The value is defaults to 1, But it can be modified .
The following is a specific summary Render Mode by Screen Space - Camera when ,Scale How values are calculated .
Screen Spcae - Camera Mode of Scale value
In this mode Scale The value is automatically calculated by the engine , And can't modify .
This pattern relies on a Camera, Usually in UI In the system, we will use the orthogonal camera . In the following, we will discuss... In the orthogonal camera mode in detail Scale value , We'll deduce when we have time behind the perspective camera .
Suppose the height of the current screen is ScreenH, The orthographic camera has a parameter that the user can set Size, So the formula is as follows :
ScreenH*Scale*(1/2)=Size
You can get :Scale=(2*Size)/ScreenH
contrast Sprite Renderer
Doing pure 2D In the game , More use Sprite Renderer Components , Orthographic cameras are also commonly used , Camera's Size Set the rule to :Size= Design resolution height /100/2
Suggest
Use UGUI When developing ,UI Camera's Size Don't set it up at will . Usage rule :Size= Design resolution height /100/2
边栏推荐
- 2022-2028 global and Chinese thermal ionization isotope mass spectrometer (TIMS) market status and future development trend
- A Mechanics-Informed Artificial Neural Network Approach in Data-Driven Constitutive Modeling 学习
- 2022-2028 global and Chinese thermocouple sensor market status and future development trend
- Interpretation of OCP function of oceanbase Community Edition
- Current situation and future development trend of hot isostatic pressing service market in the world and China from 2022 to 2028
- QQ贴吧那种图片一点开,就变了的原理
- Leetcode2027. Minimum number of operations to convert a string (yes, once)
- 13 r basic exercises
- 【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
- 模拟Oracle锁等待与手工解锁
猜你喜欢

模拟Oracle锁等待与手工解锁

Database introduction

Modelarts second job

iMeta | 南科大夏雨组纳米孔测序揭示微生物可减轻高海拔冻土温室气体排放

Usage methods and cases of PLSQL blocks, cursors, functions, stored procedures and triggers of Oracle Database

STC 纯硬件自动下载电路 V2

2022Redis7.0x版本持久化详细讲解

The principle that the picture of QQ Post Bar changes when it is opened

里氏替换原则

RTL arbiter design
随机推荐
In 2021, the global ceramic substrate revenue will be about US $409.7 million, and it is expected to reach US $657.3 million in 2028
moderlarts第一次培训
14 r basic exercises
[bug resolution] unpickingerror: a load persistent ID instruction was encoded, but no persistent_ load.
MySQL - transaction
STL container nested container
AHB2Standard_ handshake_ Bridge design
Hdu3527 (Hangdian) spy problem
Force buckle 6 Zigzag transformation
Date of SQL optimization_ Format() function
ICML 2022 | 基于结构化数据的异常检测再思考:我们究竟需要怎样的图神经网络?...
2022-2028 current situation and future development trend of fuel cell market for cogeneration application in the world and China
全名单!2022泰晤士亚洲大学排名公布!
Global Market Consulting - Research Report on the overall scale and application segmentation of the global HVDC converter station market in 2022
2022-2028 current market situation and future development trend of thermopile Pyranometers in the world and China
LNMP架构源码编译安装图文讲解(附带搭建论坛实验)
iMeta | 南科大夏雨组纳米孔测序揭示微生物可减轻高海拔冻土温室气体排放
29. Objet de localisation
What is the meaning of holding shares of financial products?
基于 Vue + Codemirror 实现 SQL 在线编辑器