Initial commit
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user