Код: Выделить всё
#if UNITY_EDITOR
public void Update()
{
if(Input.GetKeyDown(KeyCode.B))
{
Debug.Log("Hello");
}
}
#endif
Подробнее здесь: https://stackoverflow.com/questions/798 ... the-editor
Код: Выделить всё
#if UNITY_EDITOR
public void Update()
{
if(Input.GetKeyDown(KeyCode.B))
{
Debug.Log("Hello");
}
}
#endif