Skip to content

Instantly share code, notes, and snippets.

@YoriKv
Created April 28, 2015 05:44
Show Gist options
  • Save YoriKv/bad8322b5398a4873f95 to your computer and use it in GitHub Desktop.
Save YoriKv/bad8322b5398a4873f95 to your computer and use it in GitHub Desktop.
Unity Editor Script - Force2DSound on Import
using UnityEditor;
using UnityEngine;
public class Force2DSound:AssetPostprocessor {
public void OnPreprocessAudio() {
AudioImporter ai = assetImporter as AudioImporter;
ai.threeD = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment