/*private static int GetSerializedVersion(Version version) * { #warning TODO: serialized version acording to read version (current 2017.3.0f3) * return 2; * }*/ public override void Read(AssetStream stream) { base.Read(stream); OutputGroup.Read(stream); MasterGroup.Read(stream); m_snapshots = stream.ReadArray <PPtr <AudioMixerSnapshot> >(); StartSnapshot.Read(stream); SuspendThreshold = stream.ReadSingle(); EnableSuspend = stream.ReadBoolean(); stream.AlignStream(AlignType.Align4); UpdateMode = stream.ReadInt32(); stream.AlignStream(AlignType.Align4); MixerConstant.Read(stream); stream.AlignStream(AlignType.Align4); }
/*public static int ToSerializedVersion(Version version) * { #warning TODO: serialized version acording to read version (current 2017.3.0f3) * return 2; * }*/ public override void Read(AssetReader reader) { base.Read(reader); OutputGroup.Read(reader); MasterGroup.Read(reader); Snapshots = reader.ReadAssetArray <PPtr <AudioMixerSnapshot> >(); StartSnapshot.Read(reader); SuspendThreshold = reader.ReadSingle(); EnableSuspend = reader.ReadBoolean(); reader.AlignStream(); UpdateMode = reader.ReadInt32(); reader.AlignStream(); MixerConstant.Read(reader); reader.AlignStream(); }