Example #1
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
#warning TODO: serialized version acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(container);
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("OutputAudioMixerGroup", OutputAudioMixerGroup.ExportYAML(container));
            node.Add("m_audioClip", AudioClip.ExportYAML(container));
            node.Add("m_PlayOnAwake", PlayOnAwake);
            node.Add("m_Volume", Volume);
            node.Add("m_Pitch", Pitch);
            node.Add("Loop", Loop);
            node.Add("Mute", Mute);
            node.Add("Spatialize", Spatialize);
            node.Add("SpatializePostEffects", SpatializePostEffects);
            node.Add("Priority", Priority);
            node.Add("DopplerLevel", DopplerLevel);
            node.Add("MinDistance", MinDistance);
            node.Add("MaxDistance", MaxDistance);
            node.Add("Pan2D", Pan2D);
            node.Add("rolloffMode", (int)RolloffMode);
            node.Add("BypassEffects", BypassEffects);
            node.Add("BypassListenerEffects", BypassListenerEffects);
            node.Add("BypassReverbZones", BypassReverbZones);
            node.Add("rolloffCustomCurve", RolloffCustomCurve.ExportYAML(container));
            node.Add("panLevelCustomCurve", PanLevelCustomCurve.ExportYAML(container));
            node.Add("spreadCustomCurve", SpreadCustomCurve.ExportYAML(container));
            node.Add("reverbZoneMixCustomCurve", ReverbZoneMixCustomCurve.ExportYAML(container));
            return(node);
        }
Example #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(OutputAudioMixerGroupName, OutputAudioMixerGroup.ExportYAML(container));
            node.Add(AudioClipName, AudioClip.ExportYAML(container));
            node.Add(PlayOnAwakeName, PlayOnAwake);
            node.Add(VolumeName, Volume);
            node.Add(PitchName, Pitch);
            node.Add(LoopName, Loop);
            node.Add(MuteName, Mute);
            node.Add(SpatializeName, Spatialize);
            node.Add(SpatializePostEffectsName, SpatializePostEffects);
            node.Add(PriorityName, Priority);
            node.Add(DopplerLevelName, DopplerLevel);
            node.Add(MinDistanceName, MinDistance);
            node.Add(MaxDistanceName, MaxDistance);
            node.Add(Pan2DName, Pan2D);
            node.Add(RolloffModeName, (int)RolloffMode);
            node.Add(BypassEffectsName, BypassEffects);
            node.Add(BypassListenerEffectsName, BypassListenerEffects);
            node.Add(BypassReverbZonesName, BypassReverbZones);
            node.Add(RolloffCustomCurveName, GetRolloffCustomCurve(container.Version).ExportYAML(container));
            node.Add(PanLevelCustomCurveName, GetPanLevelCustomCurve(container.Version).ExportYAML(container));
            node.Add(SpreadCustomCurveName, GetSpreadCustomCurve(container.Version).ExportYAML(container));
            node.Add(ReverbZoneMixCustomCurveName, GetReverbZoneMixCustomCurve(container.Version).ExportYAML(container));
            return(node);
        }