๐ŸŽฎ 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