본문 바로가기
728x90
반응형

전체 글42

[Unity] 유니티 단축키 모음 1. Hierarchy 오브젝트 활성화 / 비 활성화 : Alt + Shift + A 2. Hierarchy에서 Add Component 추가 : Ctrl + Shift + A 알아갈 때마다 계속 수정 될 예정 2021. 7. 26.
[Web] IE11(익스플로러) JPG 이미지 엑박 오류 익스에서 JPG를 이미지로 보려고하면 엑박 오류가 생긴다. 해결방법은 header에 content type을 변경하는 것이다. Internet Explorer는 image/jpg가 아닌 image/jpeg를 사용(Internet Explorer는 MIME 유형을 사용) 모든 브라우저가 jpeg를 사용하기 떄문에 변경해도 상관없다. - 수정 전 header("Content-type: image/jpg"); - 수정 후 header("Content-type: image/jpeg"); [참고자료] https://stackoverflow.com/questions/14148586/php-header-content-type-image-jpeg-not-working-for-internet-explorer 2021. 7. 16.
[유니티] DontDestroyOnLoad 싱글톤 패턴 사용법 using UnityEngine; public class StartManager : MonoBehaviour { public static StartManager instance = null; void Awake() { // SoundManager 인스턴스가 이미 있는지 확인, 이 상태로 설정 if (instance == null) instance = this; // 인스턴스가 이미 있는 경우 오브젝트 제거 else if (instance != this) Destroy(gameObject); // 이렇게 하면 다음 scene으로 넘어가도 오브젝트가 사라지지 않습니다. DontDestroyOnLoad(gameObject); } } 2021. 6. 22.
[Web] GNB(Drop Down - All) 사용 방법 See the Pen GNB (Drop Down - All) by Shin (@hjshin) on CodePen. 홈페이지 수정 할때 JS 파일을 header에 태그 안에 위치 하도록 하는 것이 좋다. " target="_blank" rel="noopener">https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"> 출처 : https://codepen.io/hjshin/pen/ENVBxZ 2021. 5. 25.
728x90
반응형