So I have just imported an old unity 4 package into my unity 5 game. In one of the editor scripts, it has a few lines like this:
audioImporter.loadType = AudioClipLoadType.Streaming;
The audioImporter.loadType is just a way to get/set some of the import settings for a particular piece of audio, as far as I can tell.
The problem is, apparently in Unity 5, this code no longer works. I get this error for these lines:
Type UnityEditor.AudioImporter' does not contain a definition for
loadType’ and no extension method loadType' of type
UnityEditor.AudioImporter’ could be found (are you missing a using directive or an assembly reference?)
I’ve looked all through the script reference and whatnot, but I can’t seem to find a way to replace this line of code. Is there a way, or am I just kinda screwed and I need to find a new asset?
Thanks in advance for any help!