public CustomAudioImporterSettingValue(CustomAudioImporterSettingValue copy) { ForceToMono = new ImporterBoolValue(copy.ForceToMono); LoadInBackGround = new ImporterBoolValue(copy.LoadInBackGround); #if UNITY_2017_1_OR_NEWER Ambisonic = new ImporterBoolValue(copy.Ambisonic); #endif LoadType = new ImporterAudioClipValue(copy.LoadType); PreloadAudioData = new ImporterBoolValue(copy.PreloadAudioData); CompressionFormat = new ImporterAudioCompressionValue(copy.CompressionFormat); Quality = new ImporterFloatValue(copy.Quality); SampleRateSetting = new ImporterSampleRateValue(copy.SampleRateSetting); SampleRate = new ImporterIntValue(copy.SampleRate); }
public CustomAudioImporterSettingValue() { ForceToMono = new ImporterBoolValue(); LoadInBackGround = new ImporterBoolValue(); #if UNITY_2017_1_OR_NEWER Ambisonic = new ImporterBoolValue(); #endif LoadType = new ImporterAudioClipValue(); PreloadAudioData = new ImporterBoolValue(); CompressionFormat = new ImporterAudioCompressionValue(); Quality = new ImporterFloatValue(); SampleRateSetting = new ImporterSampleRateValue(); SampleRate = new ImporterIntValue(); SampleRate.Value = 44100; }