๐ฎ Unity Study/Unity
Unity Canvas :: Reference Pixels Per Unit
ibelieveinme
2024. 4. 16. 17:59
728x90
https://delightdev.com/unity-reference-pixels-per-unit-%EC%9D%B4%ED%95%B4/
Unity - Reference Pixels Per Unit ์ดํด
์ด ๊ธ์์๋ Unity์ Canvas Scaler์์ ์ค์ํ ์ค์ ์ธ Reference Pixels Per Unit์ ๋ํด ์ค๋ช ํฉ๋๋ค. ์ด ์ค์ ์ ์คํ๋ผ์ดํธ์ UI ์์์ ํฌ๊ธฐ ์กฐ์ ์ ํต์ฌ์ ์ธ ์ญํ ์ ํ๋ฉฐ, ๋ค์ํ ํด์๋์์ UI์ ์ผ๊ด๋
delightdev.com
https://docs.unity3d.com/ScriptReference/Canvas-referencePixelsPerUnit.html
Unity - Scripting API: Canvas.referencePixelsPerUnit
Sprites have a Pixels Per Unit that control the pixel density of the sprite. For sprites that have the same Pixels Per Unit as the Reference Pixels Per Unit in the Canvas, the pixel density will be one to one.
docs.unity3d.com
728x90