Unity에서 Log의 Color 설정
Debug.Log ("<color=green>Menu State</color> OnActive"); Debug.Log ("<color=red>Menu State</color> OnDeactivate"); Debug.Log ("<color=yellow>Menu State</color> OnUpdate");
![](https://i2.wp.com/scanhand.cafe24.com/wp-content/uploads/2021/08/debug_log.png?w=945&ssl=1)
Unity에서 Log의 Color 설정
Debug.Log ("<color=green>Menu State</color> OnActive"); Debug.Log ("<color=red>Menu State</color> OnDeactivate"); Debug.Log ("<color=yellow>Menu State</color> OnUpdate");
8월 14, 2021 Unity No comments Android, Game, Unity
문제점
Unity MonoBehaior에 아래와 같이 OnMouseDown() or IPointerDownHandler를 사용 하였지만,동작 하지 않음
public class Tile : MonoBehaviour, IPointerDownHandler { void OnMouseDown() { Debug.Log("OnMouseUp"); } public void OnPointerDown(PointerEventData eventData) { Debug.Log(this.gameObject.name + " Was Clicked."); } }
해결책
Main Carmera의 Position.Z를 0에서 -10로 변경 후 정상 동작