앞에 event를 지워주면 해결된다. 보통 public static event Action OnAction; 을 UnityEvent로 변환시키려다 발생한다.
끗
'앱 개발 > Unity, C#' 카테고리의 다른 글
[Unity][UI Toolkit] uss에서 gap 옵션(child 사이 spacing) 구현하기 [USS] (0) | 2024.11.29 |
---|---|
[Unity][UI Toolkit] uss에서 first-child, last-child 구현하기 [USS] (0) | 2024.11.29 |
[Unity] 커서 모양 바꾸기 + 커서 회전하기 [How to rotate custom cursor texture] (2) | 2024.02.18 |
[Unity][UI Toolkit] 버튼 누르는 동안 동작 실행 (0) | 2024.02.18 |
[Unity][ClickEvent] 버튼 클릭 이벤트를 처리하는 n가지 방법 (0) | 2024.02.18 |