Version: 2022.2
言語: 日本語
public bool forceToMono ;

説明

Force audioclips to mono?

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; } } }