2025/04 16

[유니티6] 스프라이트 아틀라스(Sprite Atlas) 사용법 및 주의점 (유니티 최적화)

printf("Hello world!\n"); 보통 2D 게임을 만들 때, 렌더링 시 어떤 스프라이트를 참고하여 Draw 하게 되는데 이때 Drawcall이라는 것을 한 번 호출하게 된다. 근데 예를 들어 아래와 같이 그릴 것들이 많아서 참고해야 할 스프라이트 이미지가 n개라고 한다면? Drawcall도 n번 만큼 발생하게 되는 것이다. Drawcall 이 많으면 게임 퍼포먼스가 안 좋아진다. 반대로 얘기하면 Drawcall이 적으면 게임 퍼포먼스가 좋아진다. 스프라이트 아틀라스를 이용하여 이 Drawcall을 줄여보도록 하자! > 유니티6에서는 따로 설정을 하지 않아도 Sprite Atlas를 바로 사용할 수 있다. 아래처럼 바로 Create 할 수 있는데, 이전 버전에서는 Editor에서 어떤 설정..

유니티 2025.04.18

[유니티 최적화] Profiling (빌드 이후 메모리 사용량 등 확인 하기.)

에디터에서는 무리 없이 잘 작동되는 거 같은데, 안드로이드로 빌드만 하면 뭔가 버벅거리는 느낌이 나서 이걸 어떻게 찾아서 분석해야 하나 싶었다. 다행히 유니티에서는 profiling 기능을 제공하고 있는데, 이걸 통해서 대략적으로 내가 만든(만들고 있는) 게임이 어떤 식으로 돌아가고 있는지 확인해 볼 수 있다. > 위에서와 같이 build profile 세팅화면에서 'Autoconnect Profiler'를 체크하고 빌드를 해준다. > 빌드하고 나면 저렇게 apk 파일이 생성 되는데 (안드로이드 기준), 나는 블루스택(폰게임 컴퓨터로 할 때 쓰는 프로그램이라고 보면 됨.)이라는 프로그램을 이용하여서 게임을 실행하였다. 게임을 실행한 상태에서 유니티 에디터로 돌아와 보면 아래와 같이 콘솔 창에 Au..

유니티 2025.04.17

[웹 해킹 : 나타스(Natas 워게임] Level 16 -> 17(웹 해킹 / 보안)

Natas wargame Level 16 -> 17 로그인 정보와 URL 은 아래와 같다.(참고로 Password는 사람마다 다를 수 있다! 시도(?)하는 환경마다 조금씩 차이가 있는 것 같음.)Username : natas17 Password : EqjHJbo7LFNb8vwhHb9s75hokh5TF0OCNatas URL : http://natas17.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas17.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1...

[웹 해킹 : 나타스(Natas 워게임] Level 15 -> 16(웹 해킹 / 보안)

Natas wargame Level 15 -> 16 로그인 정보와 URL 은 아래와 같다.(참고로 Password는 사람마다 다를 수 있다.! 시도(?)하는 환경마다 조금씩 차이가 있는 것 같음.)Username : natas16 Password : hPkjKYviLQctEW33QmuXL6eDVfMW4sGoNatas URL : http://natas16.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas16.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1..

[웹 해킹 : 나타스(Natas 워게임] Level 14 -> 15(웹 해킹 / 보안)

Natas wargame Level 14 -> 15 로그인 정보와 URL 은 아래와 같다.Username : natas15 Password : SdqIqBsFcz3yotlNYErZSZwblkm0lrvxNatas URL :  http://natas15.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas15.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas..

[웹 해킹 : 나타스(Natas 워게임] Level 13 -> 14(웹 해킹 / 보안)

Natas wargame Level 13 -> 14 로그인 정보와 URL 은 아래와 같다.Username : natas14 Password : z3UYcr4v4uBpeX8f7EZbMHlzK4UR2XtQNatas URL :  http://natas14.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas14.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas..

[웹 해킹 : 나타스(Natas 워게임] Level 12 -> 13(웹 해킹 / 보안)

Natas wargame Level 12 -> 13 로그인 정보와 URL 은 아래와 같다.Username : natas13 Password : trbs5pCjCrkuSknBBKHhaBxq6Wm1j3LCNatas URL :  http://natas13.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas13.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas..

[웹 해킹 : 나타스(Natas 워게임] Level 11 -> 12(웹 해킹 / 보안)

Natas wargame Level 11 -> 12 로그인 정보와 URL 은 아래와 같다.Username : natas12 Password : yZdkjAYZRd3R7tq7T5kXMjMJlOIkzDeBNatas URL :  http://natas12.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas12.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas..

[웹 해킹 : 나타스(Natas 워게임] Level 10 -> 11(웹 해킹 / 보안)

Natas wargame Level 10 -> 11 로그인 정보와 URL 은 아래와 같다.Username : natas11 Password : UJdqkK1pTu6VLt9UHWAgRZz6sVUZ3lEkNatas URL :  http://natas1.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas1.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas U..

[웹 해킹 : 나타스(Natas 워게임] Level 9 -> 10(웹 해킹 / 보안)

Natas wargame Level 9 -> 10 로그인 정보와 URL 은 아래와 같다.Username : natas10 Password : t7I5VHvpa14sJTUGV0cbEsbYfFP2dmOuNatas URL :  http://natas10.natas.labs.overthewire.orgOverTheWire 사이트 : https://overthewire.org/wargames/natas/natas10.html OverTheWireWe're hackers, and we are good-looking. We are the 1%. Username: natas1 URL: http://natas1.natas.labs.overthewire.orgoverthewire.org  1. 문제 풀이 > Natas ..