728x90 전체 글244 라스트오리진 ~ 변화의성소 4구역 30층 배치도 ** 본 배치도는 주관적 의견이기에 참고용도로 활용하시기 바랍니다. -배치도 2022. 10. 20. 라스트오리진 ~ 변화의성소 4구역 32층 배치도 2022. 10. 20. Unity Tool ~ Json parse 및 직렬화에 도움을 주는 툴 https://github.com/jsonfx/jsonfx GitHub - jsonfx/jsonfx: JsonFx v2.0 - JSON serialization framework for .NET JsonFx v2.0 - JSON serialization framework for .NET - GitHub - jsonfx/jsonfx: JsonFx v2.0 - JSON serialization framework for .NET github.com jsonfx는 c#에서 json의 직렬화에 도움을 주는 툴입니다. Unity Assets - Plugins 폴더에 JsonFx.json 파일을 넣어 사용하면 됩니다. 해당 git 페이지에는 사용법이 잘 소개되어 있으니 따라하기 편합니다. 2022. 10. 14. Unity & C# ~ 두 오브젝트의 색상과 이미지가 중복되지 않는 랜덤 출력 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TestRandomObjectsColor : MonoBehaviour { [SerializeField] List RanColors; // 사용될 색상 [SerializeField] List RanObjects; // 1번 이미지에 사용될 이미지들 [SerializeField] List RanObjects1; // 2번 이미지에 사용될 이미지들 private Coroutine RanCoroutine = null; private int ColorValue { get; set; } // 1번 이미지 색상 값 .. 2022. 10. 7. Unity & C# ~ Crop Image using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TestCropTexture : MonoBehaviour { public Texture2D sourceImg; // 소스 이미지 public Image img; // Image UGUI // Start is called before the first frame update void Start() { TestCrop(); } void TestCrop() { var tex = sourceImg.GetRawTextureData(); // 소스 이미지 텍스쳐 RAW DATA 변환 // 소스 이미지 texture.. 2022. 10. 7. Unity GUI Tool ~ SimpleFileBrowser https://github.com/yasirkula/UnitySimpleFileBrowser GitHub - yasirkula/UnitySimpleFileBrowser: A uGUI based runtime file browser for Unity 3D (draggable and resizable) A uGUI based runtime file browser for Unity 3D (draggable and resizable) - GitHub - yasirkula/UnitySimpleFileBrowser: A uGUI based runtime file browser for Unity 3D (draggable and resizable) github.com 유니티 환경에서 사용하기 좋은 파일 브라우저 플러그.. 2022. 10. 6. Unity & C# ~ Mic 음성을 Spectrum 표현하기 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(AudioSource))] public class AudioSourceGetSpectrumDataExample : MonoBehaviour { [SerializeField] private Image bar; // 원본 막대 prefab [SerializeField] private Transform trBarParent; // 막대 부모 // 스펙트럼 표현 막대들 // Canvas 하위 객체 private RectTransform[] bars = new RectTransform[128.. 2022. 10. 5. Unity & C# ~ string.Format 글자 색상 적용 [SerializeField] Text text; void Start() { Color c = Color.blue; text.text = string.Format($"Text"); } 2022. 9. 26. Unity & C# ~ Text 형식 표기법(NO, F0, P0, D0 등) 실수 소수점 표기 F //F0 String s = float.parse("1.11").ToString("F0"); => 1 //F1 String s = float.parse("1.11").ToString("F1"); => 1.1 //F2 String s = float.parse("1.11").ToString("F2"); => 1.11 실수 자릿수 및 천단위 표기 N //N0 String s = float.parse("1111.11").ToString("N0"); => 1,111 //N1 String s = float.parse("1111.11").ToString("N0"); => 1,111.1 //N2 String s = float.parse("1111.11").ToString("N0"); => 1,11.. 2022. 8. 22. Unity & C# ~ VisualStudio 단축키 중 (내가) 자주 사용하는 단축키 최초 작성일 : 2022.07.05 최종 수정일 : 2022.07.05 디버그 F5 : 디버그 모드 실행 Shift + F5 : 디버그 중단 F10 : 다음 라인으로 F11 : 함수 내부로 F9 : 브레이크 포인트 설정/해제 Ctrl + Shift + F9 : 모든 브레이크 포인트 삭제 코드 정리 Ctrl + K, F : 선택영역 들여쓰기 자동 정리 Ctrl + K, Ctrl + S : 코드 감싸기 (#If, #region 등) 주석 Ctrl + K, C : 여러 줄 주석 Ctrl + K, U : 여러 줄 주석 해제 Ctrl + Shift + / : 블록 주석 토글(블록한 내용을 /* */ 형태 주석으로 만들어줌) 코드 자동완성 Ctrl + Space : 코드 자동완성 이동 F12 : 정의로 이동 Ctr.. 2022. 7. 5. Unity & C# ~ UI Image Fillamount 부드럽게 움직이게 하는 법 using UnityEngine.UI; Image circleProgress; private const float loopTimeValue = 1.0f;//그리는데 걸리는 시간 public AnimationCurve loopAnimCurve; //그리는 속도를 조정해줄 애니메이션 커브 private float targetValue = 0.0f; private float currentValue = 0.0f; void Awake { targetValue = 목표값 입력; currentValue = 0; //현재값 초기화 circleProgress.fillAmount = 0.0f; //progress fillamount 초기화 StartCoroutine(MoveProgressCoroutine()); } IEn.. 2022. 7. 4. Unity & C# ~ TMPRO에서 텍스트 길이 아는 법 TMPRO에서는 UI의 길이뿐 아니라, 현재 사용한 텍스트의 길이를 확인할 수 있는 명령어가 있다. using TMPro; TMP_Text a; void Start() { float b = a.preferredWidth; //b => a의 계산된 텍스트 폭 } 2022. 7. 1. 이전 1 ··· 4 5 6 7 8 9 10 ··· 21 다음 SMALL