250110 TIL

박소희·2025년 1월 10일

Unity_7기

목록 보기
9/94

Unity 오류..
TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 37

메뉴 Assets -> Reimport All

pixels per unit: unit을 몇 pixel로 할 건지 (>> 작을 수록 커짐)

카드 16개 4x4 배치하기
x = i % 4;
y = i / 4;

array 랜덤으로 정렬하기

array.OrderBy(정렬 조건).ToArray

int[] arr;
arr.OrderBy(x=> RandomRange(0f, 7f)).ToArray; // x: 배열 전체를 훑음.

Image 스크립트로 가져오기:
Resources 폴더에 넣고 -> Resources.Load< Sprite>("");

0개의 댓글