private static void SetSymbols(BuildTargetGroup targetBuild, Region region)
{
string sz = PlayerSettings.GetScriptingDefineSymbolsForGroup(targetBuild);
//Debug.LogError(sz);
string targetstr = region.ToString();
if (!sz.Contains(targetstr + ";") && !sz.Contains(";" + targetstr))
{
sz = sz + ";" + targetstr;
}
PlayerSettings.SetScriptingDefineSymbolsForGroup(targetBuild, sz);
//Debug.LogError("替换后:"+sz);
}
网友评论