Unity

Burst

July 10 2022

๊ฐœ์š” LLVM์„ ์‚ฌ์šฉํ•˜์—ฌ IL์„ ๊ณ ๋„๋กœ ์ตœ์ ํ™”๋œ ๋„ค์ดํ‹ฐ๋ธŒ ์ฝ”๋“œ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์ปดํŒŒ์ผ๋Ÿฌ

SpriteRenderer vs. UI Image

June 22 2022

SpriteRenderer ์–ด๋–ค hierarchy์—๋„ ๋ฐฐ์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค Transform์œผ๋กœ ์กฐ์ •ํ•œ๋‹ค transparent geometry queue๋ฅผ ํ†ตํ•ด์„œ render๋œ๋‹ค default material์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ž๋™์œผ๋กœ ์ตœ์  ๋ฉ”์‰ฌ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค draw call์„ ์ค„์ด๊ธฐ ์œ„ํ•ด sprite at...

IL2CPP

May 10 2022

์ปดํ“จํ„ฐ ํ”„๋กœ๊ทธ๋žจ์„ ๋งŒ๋“œ๋Š” ๋ฐฉ์‹ 2๊ฐ€์ง€

Gizmo

August 11 2021

Gizmo ์”ฌ ๋ทฐ์—์„œ ํŽธ์ง‘์ด๋‚˜ ๋””๋ฒ„๊น…์„ ์œ„ํ•ด ์˜ค๋ธŒ์ ํŠธ์˜ ์œ„์น˜๋‚˜ ๋ฒ”์œ„, ํŠน์ • ์š”์†Œ๋ฅผ ๊ฐ€์‹œํ™”

DontDestroyOnLoad

June 03 2021

DontDestroyOnLoad ์ƒˆ๋กœ์šด Scene์ด ๋กœ๋“œ๋  ๋•Œ, ์ž๋™์œผ๋กœ ํŒŒ๊ดด๋˜์ง€ ์•Š๋Š” target ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์ƒ์„ฑ ์ƒˆ ๋ ˆ๋ฒจ์ด ๋กœ๋“œ๋˜๋ฉด Scene์˜ ๋ชจ๋“  ์˜ค๋ธŒ์ ํŠธ๋“ค์€ ํŒŒ๊ดด๋˜๊ณ , ์ƒˆ ๋ ˆ๋ฒจ์˜ ์˜ค๋ธŒ์ ํŠธ๋“ค์ด ๋กœ๋“œ๋œ๋‹ค. ๋ ˆ๋ฒจ ์Šค์œ„์น˜ ์ค‘์— ์˜ค๋ธŒ์ ํŠธ๋ฅผ ๋ณด์กดํ•˜๊ธฐ ์œ„ํ•ด DontDestroyOnLoad ์‚ฌ์šฉ ํ•ด๋‹น ์˜ค๋ธŒ์ ํŠธ๊ฐ€ component์ด๊ฑฐ๋‚˜ gam...

Image Compressing

March 04 2021

์ด๋ฏธ์ง€ ์••์ถ• PNG/JPG ๋“ฑ์œผ๋กœ ์••์ถ•ํ–ˆ๋”๋ผ๋„ GPU ๋ฉ”๋ชจ๋ฆฌ์— ์ €์žฅํ•  ๋•Œ๋Š” ์••์ถ•์ด ํ’€๋ฆฐ ์ƒํƒœ๋กœ ์ €์žฅ GPU๊ฐ€ ์ด ํŒŒ์ผ์„ ๊ทธ๋Œ€๋กœ ์ฝ์–ด๋“ค์ผ ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ ๋Œ€์—ญํญ ์‚ฌ์šฉ๋Ÿ‰์— ์ดˆ์ ์„ ๋งž์ถ˜ ํŒŒ์ผ ํ˜•์‹ GPU๊ฐ€ ํ…์Šค์ณ๋กœ ์“ฐ๊ธฐ ์œ„ํ•œ ์••์ถ• ํ˜•์‹์ด ์•„๋‹˜ ๊ฐ€๋ณ€ ๋น„์œจ ์ธ์ฝ”๋”ฉ์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ๋•Œ๋ฌธ ...

Culling

March 04 2021

Frustum Culling Camera (View) Matrix Far/Near ๊ฐ’์œผ๋กœ ์กฐ์ • ์›๊ฑฐ๋ฆฌ Culling objects์˜ ๋ถ€์ž์—ฐ์Šค๋Ÿฌ์›€ ๊ฐ์ถ”๊ธฐ ์œ„ํ•ด Fog ์‚ฌ์šฉ

Drawcall

March 03 2021

๋“œ๋กœ์šฐ์ฝœ // OpemGL์˜ DrawCall glDrawArrays(); // vertices rendering glDrawElements(); // indices rendering CPU์—์„œ ๊ทธ๋ž˜ํ”ฝ API ํ˜ธ์ถœ์„ ํ†ตํ•ด GPU์— ๋ Œ๋”๋ง์„ ๋ช…๋ นํ•˜๋Š” ๊ฒƒ

SafeArea

February 22 2021

SafeArea ๋ชจ๋ฐ”์ผ ํ•ด์ƒ๋„์—์„œ ์ „๋ฉด ์นด๋ฉ”๋ผ ์˜์—ญ ์นจ๋ฒ”ํ•˜์ง€ ์•Š๊ฒŒ ๋ณด์žฅํ•ด์ฃผ๋Š” ์˜์—ญ ๋…ธ์น˜ํฐ์— ๋Œ€ํ•ด ui ๋ฐฐ์น˜ ๋Œ€์‘์„ ์œ„ํ•ด ์„ค์ •

C# parameter modifier

February 19 2021

in ํ‚ค์›Œ๋“œ in ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์ „๋‹ฌ๋˜๋Š” ๋ณ€์ˆ˜๋Š” ๋ฉ”์„œ๋“œ๋กœ ์ „๋‹ฌ๋˜๊ธฐ ์ „ ๋ฐ˜๋“œ์‹œ ์ดˆ๊ธฐํ™” ์ธ์ˆ˜๊ฐ€ ์ฐธ์กฐ๋กœ ์ „๋‹ฌ๋˜์ง€๋งŒ, ์ˆ˜์ •๋˜์ง€ ์•Š์Œ ์˜ค๋ฒ„๋กœ๋”ฉ ๊ทœ์น™ ```csharp class InOverloads { // ์˜ค๋ฒ„๋กœ๋”ฉ ํ—ˆ์šฉ public void SampleMethod(in int i) { } public void SampleMeth...

AssetBundle

February 18 2021

์—์…‹๋ฒˆ๋“ค ์œ ๋‹ˆํ‹ฐ ํ”„๋กœ์ ํŠธ์— ์‚ฌ์šฉํ•  ๋ฆฌ์†Œ์Šค๋“ค์„ ๋ฌถ์€ ๊ฒƒ ์œ ๋‹ˆํ‹ฐ์—์„œ ์—์…‹ ๋ฒˆ๋“ค ์ƒ์„ฑ ์™ธ๋ถ€ ์Šคํ† ๋ฆฌ์ง€(์„œ๋ฒ„)์— ์ €์žฅ ํ”„๋กœ์ ํŠธ์˜ ๋Ÿฐํƒ€์ž„ ์ค‘ ๋ฒˆ๋“ค์„ ๋‹ค์šด๋กœ๋“œ ๋‹ค์šด๋กœ๋“œํ•œ ๋ฒˆ๋“ค์—์„œ ๊ฐœ๋ณ„ ์—์…‹์„ ๋กœ๋“œํ•ด ์‚ฌ์šฉ

Canvas

February 17 2021

Canvas Unity์—์„œ ๋ชจ๋“  UI ๊ฐ์ฒด๋ฅผ ๋ Œ๋”๋ง ํ•˜๊ธฐ ์œ„ํ•œ ๋ฃจํŠธ ์ปดํฌ๋„ŒํŠธ ๊ธฐ๋ณธ์ ์œผ๋กœ 4๊ฐœ์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ํฌํ•จ RectTransform Canvas Canvas Scaler Graphic Raycaster

9-slice scaling

February 16 2021

9 Slicing ํ•˜๋‚˜์˜ ํ…์Šค์ณ๋กœ ๋‹ค์–‘ํ•œ ์‚ฌ์ด์ฆˆ์˜ ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ด๋ฏธ์ง€๋กœ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ• ๋ฆฌ์‚ฌ์ด์ง• ์‹œ, ์ด๋ฏธ์ง€๋ฅผ ์™œ๊ณกํ•˜์ง€ ์•Š์Œ

Coroutine

January 19 2021

์„œ๋ธŒ๋ฃจํ‹ด(Subroutine) C์–ธ์–ด ๋“ฑ์—์„œ ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜ ์‹œ์ž‘ํ•  ๋•Œ ์ง„์ž…ํ•˜๋Š” ์ง€์ ์ด ํ•˜๋‚˜ ์กด์žฌํ•˜๊ณ , ์ข…๋ฃŒ๋˜๋Š” ์ง€์ ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. ์„œ๋ธŒ๋ฃจํ‹ด์€ ์‹œ์ž‘์ ๊ณผ ์ข…๋ฃŒ์ ์ด 1๊ฐœ์ธ ์ฝ”๋ฃจํ‹ด์— ํฌํ•จ

MonoBehaviour

January 19 2020

Component๋ž€? GameObject ์— ๋ถ€์ฐฉ๋˜๋Š”(Attached) ๋ชจ๋“  ๊ฒƒ๋“ค์ด ์ƒ์†๋ฐ›๋Š” ๊ธฐ๋ฐ˜ ํด๋ž˜์Šค. MonoBehaviour ๋Š” Unity ์˜ ๋ชจ๋“  ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์ƒ์†๋ฐ›๋Š” ํด๋ž˜์Šค ์‚ฌ์šฉ์ž๊ฐ€ Unity ์—”์ง„์˜ ์ž‘๋™ ๋ฐฉ์‹์„ ์ดํ•ดํ•˜์ง€ ๋ชปํ•˜๋”๋ผ๋„ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ฏธ๋ฆฌ ๋งŒ๋“ค์–ด ๋‘”(built-in) Behaviour ํด๋ž˜์Šค์ด์ž ์Šคํฌ๋ฆฝํŠธ ๋ช…...