Example #1
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Apply settings"))
            {
                AssetDatabase.TryGetGUIDAndLocalFileIdentifier(target, out string guid, out long _);
                BuildSettingsPresetsManager.ApplyPreset(guid);
            }

            if (GUILayout.Button("Overwrite with current build settings"))
            {
                ((BuildSettingsPreset)target).OverwriteWithCurrentBuildSettings();
                EditorUtility.SetDirty(target);
            }

            EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
            DrawDefaultInspector();
        }
 public static void Applyd42ad8b01c8a68846865607ee58cdd0e()
 {
     BuildSettingsPresetsManager.ApplyPreset("d42ad8b01c8a68846865607ee58cdd0e");
 }
 private static void RefreshDelayCall()
 {
     BuildSettingsPresetsManager.RefreshPresetsList();
     EditorApplication.delayCall -= RefreshDelayCall;
 }