Firstborn/Assets/AwesomeTechnologies/TouchReactSystemPro/Editor/CompilerDefineTouchReact.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

24 lines
701 B
C#

using UnityEditor;
namespace AwesomeTechnologies.TouchReact
{
[InitializeOnLoad]
public class CompilerDefineTouchReact : Editor
{
private static readonly string _EditorSymbol = "TOUCH_REACT";
static CompilerDefineTouchReact()
{
var symbols =
PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
if (!symbols.Contains(_EditorSymbol))
{
symbols += ";" + _EditorSymbol;
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup,
symbols);
}
}
}
}