Hi.
I came across an error that shows up in Editor mode. If the game is stopped (by pressing the play button),
If I code like this
void OnDisable()
{
if (GameObject.Find("Controller"))
{
// my code
}
}
This error occurs.
however If I code like this
void OnDestroy()
{
if (GameObject.Find("Controller"))
{
// my code
}
}
This error will not appear.
this GameObject I I did not destroy it.everything seems work ok,is this a really error?