Machineboy空
string[] inputs = Console.ReadLine().Split();여기서 NullReferenceException이 발생되었다.이유는 즉슨, Console.ReadLine()이 Null일 때 Split을 해주려고 해서 였다. Split하기 전에 null인지 체크해주었더니 해결. string input = Console.ReadLine();if (string.IsNullOrWhiteSpace(input)){ return; }string[] edge = input.Split(); https://learn.microsoft.com/ko-kr/dotnet/api/system.nullreferenceexception?view=net-8.0 NullReferenceException 클래스 (Syst..
https://freezer09.tistory.com/4 Unity Mask, 유니티 마스크, 원하는 모양으로 이미지 보여지게 하기.유니티에서 간단하게 UI 이미지를 위와같이 마스크하는 방법을 소개합니다.위 이미지같은 경우에는 원래는 바탕화면 크기의 원본이미지를, X마크 모양으로 출력하게 한 결과입니다.(MASK란? 타겟freezer09.tistory.com
Window - TextMeshPro - Font Asset Creator FontAssetCreater - Atlas Resolution 4096*4096 Generation Setting - Atlas Population Mode - Dynamic - Sampling Point Size: 60 https://maloveforme.tistory.com/168 [유니티] 한글 폰트 깨짐 with Text Mesh Pro개요 유니티로 게임 개발을 진행하던 중, 한글 문자가 깨져서 사각형으로 나타나는 문제를 발견하였다. 이 현상은 주로 폰트가 한글을 지원하지 않거나, 파일의 인코딩이 잘못된 경우에 발생하maloveforme.tistory.com
문제 풀이시, 입력을 좀 더 효율적으로 처리하기 위해서 정리해둔다.입력: 입력값을 정수로 바꾸기string input = Console.ReadLine();int num = int.Parse(input);int input = int.Parse(Console.ReadLine());입력: 여러 개의 입력값을 공백으로 구분하여 나누기string input = Console.ReadLine();string[] splited = input.Split(' ');string[] input = Console.ReadLine().Split();입력: 입력 길이가 정해져 있지 않은 경우while(true){ string input = Console.ReadLine(); if(input == null) bre..