Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Did something change with print()?

Discussion in 'Editor & General Support' started by crowmagnon, Jun 7, 2012.

  1. crowmagnon

    crowmagnon

    Joined:
    Mar 2, 2011
    Posts:
    36
    I just recently upgraded to 3.5.2 and am noticing some strange behavior with using print() and Debug.Log(). It seems my print statements do not reliably print out on every frame anymore. For example, I have a print() statement in the Update function of an object, but it does not print on every frame. But I know that Update is continually being called, because I have other code in there that is obviously being executed. It either prints at just the beginning of the program execution, or at random intervals while it is running. Very strange. Did something change in regards to how print is handled?
     
  2. UnityCoder

    UnityCoder

    Joined:
    Dec 8, 2011
    Posts:
    534
    I think by mistake u pressed the collapsed button on console window, just check it out.
     
  3. crowmagnon

    crowmagnon

    Joined:
    Mar 2, 2011
    Posts:
    36
    Thank you! You're right, I had accidentally pressed 'collapse', which I was not even aware was a feature. That's a relief!