| | 1 | | using UnityEditor; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public static class EditorUtils |
| | 5 | | { |
| | 6 | | [MenuItem("Decentraland/Clear Player Prefs")] |
| 0 | 7 | | public static void ClearAllPlayerPrefs() { PlayerPrefs.DeleteAll(); } |
| | 8 | | } |
| | 9 | |
|
| | 10 | | public static class CompilerOptions |
| | 11 | | { |
| | 12 | | [InitializeOnLoadMethod] |
| | 13 | | public static void SetProfilingFuncs() |
| | 14 | | { |
| | 15 | | BuildTarget target = EditorUserBuildSettings.activeBuildTarget; |
| | 16 | |
|
| | 17 | | if ( target == BuildTarget.WebGL) |
| | 18 | | { |
| | 19 | | PlayerSettings.WebGL.emscriptenArgs = " --profiling-funcs "; |
| | 20 | | } |
| | 21 | | } |
| | 22 | | } |