Пример #1
0
        static public void SetDefineSymbols(BuildTargetGroup buildTargetGroup, PlatformDefineSetting defineSetting)
        {
            string newDef = string.Empty;

            for (int i = 0; i < defineSetting.defines.Length; i++)
            {
                newDef += defineSetting.defines[i] + ";";
            }
            PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, newDef);
        }
        private void SetNewPlatformSetting(int index)
        {
            if (index >= root.platformSetting.Length)
            {
                return;
            }

            curretPlatformSettingIdx = index;
            var newPlatformSetting = root.platformSetting[index];

            if (selectedPlatformSetting == null || selectedPlatformSetting != newPlatformSetting)
            {
                // New Target Platform, Update information
                selectedPlatformSetting = newPlatformSetting;

                UpdateDefineToggles();
            }
        }