コード例 #1
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add("m_Enabled", Enabled);
            node.Add("m_TestMode", TestMode);
            node.Add("m_TestEventUrl", GetTestEventUrl(container.Version));
            node.Add("m_TestConfigUrl", GetTestConfigUrl(container.Version));
            node.Add("m_TestInitMode", TestInitMode);
            node.Add("CrashReportingSettings", GetCrashReportingSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add("UnityPurchasingSettings", UnityPurchasingSettings.ExportYAML(container));
            node.Add("UnityAnalyticsSettings", GetUnityAnalyticsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add("UnityAdsSettings", GetUnityAdsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add("PerformanceReportingSettings", PerformanceReportingSettings.ExportYAML(container));
            return(node);
        }
コード例 #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.ForceAddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(EnabledName, Enabled);
            node.Add(TestModeName, TestMode);
            node.Add(TestEventUrlName, GetTestEventUrl(container.Version));
            node.Add(TestConfigUrlName, GetTestConfigUrl(container.Version));
            node.Add(TestInitModeName, TestInitMode);
            node.Add(CrashReportingSettingsName, GetCrashReportingSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(UnityPurchasingSettingsName, UnityPurchasingSettings.ExportYAML(container));
            node.Add(UnityAnalyticsSettingsName, GetUnityAnalyticsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(UnityAdsSettingsName, GetUnityAdsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(PerformanceReportingSettingsName, PerformanceReportingSettings.ExportYAML(container));
            return(node);
        }