forceToMono
Force audioclips to mono sound type, so all audio plays through a single channel.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public bool forceToMono { get; set; }
Examples
using UnityEngine;using UnityEditor;public class Example : AssetPostprocessor{ void OnPreprocessAudio() { AudioImporter audioImporter = assetImporter as AudioImporter; if (assetPath.Contains("mono")) { audioImporter = assetImporter as AudioImporter; audioImporter.forceToMono = true; } }}