- Home /
Question by
JacobK · Jan 28, 2015 at 05:08 PM ·
buildeditor-scriptingbuild settings
How do I toggle the Internal Profiler from a build script?
It's AndroidProfiler in ProjectSettings.asset Player Settings -> Optimization: Enable Internal Profiler [ ]
For various reasons I need to change this value from a build script, I can't see it anywhere in the settings, not even in PlayerSettings where the values above and below it are...
Anyone got any idea how to toggle it? Thanks.
Comment
Nope, sorry! As far as I could tell, it simply wasn't exposed anywhere!
It may be possible to solve this with some creative use of reflection on the unity editor, but I ended up just changing the value manually between builds, which was a bit of a pain!