Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  3. The Burst compiler has its own forum section now.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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,051
    public void Update{
    Debug.Log("some");
    }

    This called continuously even before entering play mode.

    Why and how to stop it?
     
  2. SparrowsNest

    SparrowsNest

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