Kim
Unity LongTabUI, DoubleClickUI
LongTabUI, DoubleClickUI 구현 샘플코드 LongTabUI using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; public class LongTabUI : MonoBehaviour, IPointerDownHandler, IPointerUpHandler { public UnityEvent...

PreviewRenderUtility in Unity EditorWindow
아래와 같이 원하는 GameObject를 인스펙터에 추가하여 그리는게 가능하다. 샘플코드 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class MyCustomEditorWindow : EditorWindow { Rect _objectRect...

Recursive BinarySearch
기능 이진탐색을 기본, 재귀로 구현 BinarySearch def binary_search(sorted_list, item): low = 0 high = len(sorted_list) - 1 while low <= high: mid = int((low +...

Using Json in Unity
기능 Type T에 따라 Class를 json으로 변환 코드 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; // 전달할 개별 LogClass가 상속받아야...

Create spine skeletonmecanim
기능 spine을 export하면 나오는 json, text(byte), png 3개의 파일로 skeletonmecanim을 생성한다. 코드 const string k_AtlasExt = ".txt"; const string k_PngExt = ".png"; const string k_JsonExt...