Search Unity

Update function called even before entering game mode?

Discussion in 'Scripting' started by leegod, Jan 14, 2021.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    public void Update{
    Debug.Log("some");
    }

    This called continuously even before entering play mode.

    Why and how to stop it?
     
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    do you have [ExecuteInEditMode] or something above the function?
     
    leegod and Bunny83 like this.