728x90 전체 글244 콜라보이벤트) 라스트오리진 x 우로부치 겐 22년 5월 30일부터 7월 11일까지 진행되는 라스트오리진 x 우로부치 겐 콜라보 이벤트!!! 게임은 구글 플레이스토어, 원스토어, 애플 앱스토어에서 다운 가능 공식카페 : https://cafe.naver.com/lastorigin 2022. 6. 6. Unity & C# ~ 텍스트 사이즈에 맞춰서 width값 설정하기 using UnityEngine; using TMPro; public class Test : MonoBehaviour { public TMP_Text tmpText; private void Awake() { tmpText.GetComponent().sizeDelta = new Vector2(tmpText.preferredWidth, tmpText.preferredHeight); } } - content size filter를 사용하지 못할 때 코드로 사이즈 조정을 해줄 수 있다. 2022. 6. 3. Unity & C# ~ 코루틴으로 회전하기 (Rotate Coroutine) Coroutine rotCoroutine = null; float rotSpeed = 30.0f; public void RotStartFunc() { rotCoroutine = StartCoroutine(CoroutineRotFunc()); } IEnumerator CoroutineRotFunc() { var angles = transform.rotation.eulerAngles; angles.z -= Time.deltaTime * rotSpeed; transform.rotation = Quaternion.Euler(angles); yield return null; rotCoroutine = StartCoroutine(CoroutineRotFunc()); } public void RotStopFunc().. 2022. 5. 31. Unity & C# ~ Button Sprite Swap Scirpt Controller using System.Collections; using UnityEngine; using UnityEngine.UI; public class HUD_ButtonController : MonoBehaviour { [SerializeField] Sprite defaultSprite; [SerializeField] Sprite selectedSprite; [SerializeField] Sprite pressedSprite; [SerializeField] Sprite highlightSprite; Image thisImage; bool isPress = false; bool IsPress { get { return isPress; } set { isPress = value; } } private const f.. 2022. 5. 31. Unity & C# ~ 리모트 버튼에서 스킵 버튼을 눌렀을 때 동작 Coroutine skipCoroutine = null; EventSystem = eventSystem; void Start() { eventSystem = GameObject.Find("EventSystem").GetComponent(); } void SkipFunc() { PlayBT.image.sprite = playSelectedImg; //플레이버튼 선택 이미지 PauseBT.image.sprite = pauseDefaultImg; //일시정지버튼 비활성화 이미지 if (skipCoroutine == null) { skipCoroutine = StartCoroutine("SkipCoroutineFunc"); } else if(skipCoroutine != null) { StopCoroutine(.. 2022. 5. 31. Unity & C# ~ Singleton(싱글톤) //예제1 private static T _instance = null; public static T _Instance { get { if (_instance == null) { _instance = FindObjectOfType(typeof(T)) as T; } return _instance; } } //예제2 private static T _instance = null; public static T _Instance { get { if (_instance == null) { _instance = FindObjectOfType(typeof(T)) as T; if (_instance == null) { GameObject obj = new GameObject(); obj.name = "NAME"; _in.. 2022. 5. 20. 22년 5월에 사용한 드래곤 메이드 덱 메인 블랙 메탈 드래곤 X2 증식의G X3 드래곤메이드 너서리 X1 하루우라라 X3 저택 와라시 X1 드래곤메이드 티루루 X1 드래곤메이드 파루라 X3 드래곤메이드 체임 X3 드래곤메이드 에르데 X1 드래곤메이드 후르스 X1 해귀파괴수 가메시엘 X1 => 같은 효과를 가진 파괴수를 대신 사용해도 됨 드래곤메이드 플란메 X1 드래곤메이드 루프트 X1 붉은 눈의 암흑 메탈 드래곤 X1 원시생명체 니비루 X1 해피의 깃털 X1 드래곤메이드의 환대 X1 드래곤메이드의 전환 X1 졸부와 겸허의 항아리 X3 드래곤메이드의 마중 X1 무덤의 지명자 X2 드래곤메이드의 배웅 X1 무한포영 X2 드래곤메이드의 정리정돈 X3 드래곤메이드 릴랙제이션 X1 엑스트라 바렐로드 F 드래곤 X1 드래곤메이드 하스키 X3 드래곤메이.. 2022. 5. 6. Clean Code 클린 코드 애자일 소프트웨어 장인 정신 http://www.yes24.com/Product/Goods/11681152 Clean Code 클린 코드 - YES24 애자일 소프트웨어의 혁명적인 패러다임을 제시하는 책이다. 저자 로버트 마틴은 오브젝트 멘토(Object Mentor)의 동료들과 힘을 모아 ‘개발하며’ 클린 코드를 만드는 최상의 애자일 기법을 정제 www.yes24.com 클린 코드는 로버트 C. 마틴이 적은 책으로 어떻게 하면 깔끔하고 호환성이 좋은 코드를 짤 수 있는지를 알려주는 하나의 지표를 삼을 수 있게 도와주는 책이라 할 수 있다. 보통 1-3년차 혹은 3년차 이상에서 호환성과 범용성이 떨어지는 코드를 짜거나, 조금 더 팀 작업에 도움이 되는 코드를 짜고 싶을 때, 스킬업 공부는 아니지만 좀 더 협업에 도움이 되도록 코드를.. 2022. 5. 6. Unity 문제 해결 ~ ScrollRect가 잘 안 될 때 scrollrect가 들어있는 gameOjbect에 Image가 컴포넌트로 함께 추가 되어 있을 경우, Image 컴포넌트로 인해 스크롤링이 방해 받을 수 있다. 2022. 4. 27. Unity & C# ~ String.Format 자리수 참조 : https://docs.microsoft.com/ko-kr/dotnet/api/system.string.format?view=net-6.0 String.Format 메서드 (System) 지정된 형식에 따라 개체의 값을 문자열로 변환하여 다른 문자열에 삽입 합니다. String.Format 메서드를 처음 사용하는 경우 String.Format 메서드 시작 섹션에서 대략적인 내용을 살펴보세요. String.For docs.microsoft.com String.Format("{0:#,0}", parameter); //parameter은 int형 //result // input 0 => output 0 // input 1000 => output 1,000 String.Format("{0:###-###.. 2022. 4. 27. Unity & C# ~ Property 프로퍼티 최종 수정 : 22.09.23 참조 : https://stackoverflow.com/questions/3847832/understanding-private-setters understanding private setters I don't understand the need of having private setters which started with C# 2. Having a setter method for me is letting the user to set some variables in that class. In doing so, we will not expo... stackoverflow.com //int 자리에 자료형 대입 public int parameters { get; set; } pu.. 2022. 4. 27. Atlas에 들어있는 Sprite Load 참조 https://docs.unity3d.com/ScriptReference/U2D.SpriteAtlas.html using UnityEngine.U2D; class { SpriteAtlas _sprite = null; void LoadAtlasFunc() { _sprite = Resources.Load("path"); //path = 아틀라스 경로 및 이름 //예) Assets/Resources/Atlas/ResourceAtlas => "Atlas/ResourceAtals" Sprite _exSprite = _sprite.GetSprite("name"); //name = atlas에 저장된 확장자를 제외한 이미지 파일명 //예) imageExample.png => "imageExample" } } 2022. 4. 22. 이전 1 ··· 6 7 8 9 10 11 12 ··· 21 다음 SMALL