Initial commit

This commit is contained in:
gunnbr committed 2021-01-11 22:20:43 -08:00
1 parent ee9615239e
commit 16feac691f
4093 files changed
+1030491

No files matched your search

@@ -0,0 +1,23 @@
using UnityEditor;
namespace Gaia
{
//Automates removal of the gaia define
public class GaiaRemovalEditor : UnityEditor.AssetModificationProcessor
{
public static AssetDeleteResult OnWillDeleteAsset(string AssetPath, RemoveAssetOptions rao)
{
if (AssetPath.Contains("Gaia"))
{
string symbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
if (symbols.Contains("GAIA_PRESENT"))
{
symbols = symbols.Replace("GAIA_PRESENT;", "");
symbols = symbols.Replace("GAIA_PRESENT", "");
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, symbols);
}
}
return AssetDeleteResult.DidNotDelete;
}
}
}