For a brief while this afternoon, my console was printing out the Debug.Log messages OnTriggerEnter. At some point it just stopped. Same with OnCollisionEnter. My playership is a rigidbody with box collider. All my enemies are currently static capsule colliders (with isTrigger turned on).
Please help. Cannot continue with the learning unless this is solved.
Here is the code I used:
…
void OnCollisionEnter(Collision other)
{
Debug.Log(this.name + "--Collided with--" + other.gameObject.name);
}
void OnTriggerEnter(Collider other)
{
Debug.Log("Hello Sam");
Debug.Log($"{this.name} **Triggered by** {other.gameObject.name}");
}
…
I got this error message on my console - does it have anything to do with it.
" [00:09:41] Invalid editor window of type: UnityEditor.FallbackWindow,title:Failed to Load UnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout ()"