Search Unity

Question How to disable Clear Log by code

Discussion in 'Editor & General Support' started by Rachan, Feb 25, 2024.

  1. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    769


    Hi there!

    I see this options in Console > Clear > 3 options for clear log on play or on build

    so I would like to know, there is possible to disable them all by code?

    because I'm trying to build OnPreprocessBuild and I have to disable all options to see the Debug.Log,
    if don't disable them, I can't see any Debug.Log messages in the console,
    this Debug.Log maybe under build processing, so it has been clear.

    any suggestion?
    Thanks!!!
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,804