Search Unity

Start Unity with profiler record off

Discussion in 'Scripting' started by Ennothan, Mar 22, 2018.

  1. Ennothan

    Ennothan

    Joined:
    Oct 17, 2013
    Posts:
    51
    Every time I start Unity the Record button from profiler is on.
    I want to set it to false through a script with [InitializeOnLoad].
    I tried Profiling.Profiler.enabled = false; but it didn't work.

    What I should set for this?