Skip to content

Instantly share code, notes, and snippets.

@bamboo
Created October 18, 2011 11:55
Show Gist options
  • Save bamboo/1295263 to your computer and use it in GitHub Desktop.
Save bamboo/1295263 to your computer and use it in GitHub Desktop.
import UnityEngine
import UnityEditor
[MenuItem("Tools/Remove Unsupported Components")]
def RemoveUnsupportedComponents():
unsupported = AudioChorusFilter, AudioDistortionFilter, AudioEchoFilter, AudioHighPassFilter, AudioLowPassFilter, AudioReverbFilter
for u in unsupported:
for o in GameObject.FindSceneObjectsOfType(u):
Debug.Log("destroying $o")
GameObject.DestroyImmediate(o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment