Example #1
0
        private void WriteSettingsToBackend()
        {
            if (m_TargetSettings != null)
            {
                List <BuildPlatform> validPlatforms = BuildPlatforms.instance.GetValidPlatforms();
                for (int i = 0; i < targets.Length; i++)
                {
                    VideoClipImporter clipImporter = (VideoClipImporter)targets[i];
                    clipImporter.defaultTargetSettings = m_TargetSettings[i, 0].settings;

                    for (int j = 1; j < validPlatforms.Count + 1; j++)
                    {
                        BuildTargetGroup platformGroup = validPlatforms[j - 1].targetGroup;
                        if (m_TargetSettings[i, j].settings != null && m_TargetSettings[i, j].overridePlatform)
                        {
                            clipImporter.Internal_SetTargetSettings(platformGroup, m_TargetSettings[i, j].settings);
                        }
                        else
                        {
                            clipImporter.Internal_ClearTargetSettings(platformGroup);
                        }
                    }
                }
            }

            m_ModifiedTargetSettings = false;
        }
Example #2
0
 private void WriteSettingsToBackend()
 {
     if (this.m_TargetSettings != null)
     {
         List <BuildPlayerWindow.BuildPlatform> validPlatforms = BuildPlayerWindow.GetValidPlatforms();
         for (int i = 0; i < base.targets.Length; i++)
         {
             VideoClipImporter videoClipImporter = (VideoClipImporter)base.targets[i];
             videoClipImporter.defaultTargetSettings = this.m_TargetSettings[i, 0].settings;
             for (int j = 1; j < validPlatforms.Count + 1; j++)
             {
                 BuildTargetGroup targetGroup = validPlatforms[j - 1].targetGroup;
                 if (this.m_TargetSettings[i, j].settings != null && this.m_TargetSettings[i, j].overridePlatform)
                 {
                     videoClipImporter.Internal_SetTargetSettings(targetGroup, this.m_TargetSettings[i, j].settings);
                 }
                 else
                 {
                     videoClipImporter.Internal_ClearTargetSettings(targetGroup);
                 }
             }
         }
     }
     this.m_ModifiedTargetSettings = false;
 }