Ejemplo n.º 1
0
 public static void ExportAudioClip(UnityParser parser, string name, string path)
 {
     for (int i = 0; i < parser.Cabinet.Components.Count; i++)
     {
         Component asset = parser.Cabinet.Components[i];
         if (asset.classID1 == UnityClassID.AudioClip)
         {
             AudioClip ac = parser.Cabinet.LoadComponent(asset.pathID);
             if (name == "*" || ac.m_Name == name)
             {
                 ac.Export(path);
             }
         }
     }
 }
Ejemplo n.º 2
0
        public void ExportAudioClip(Component asset, string path)
        {
            AudioClip audio = LoadWhenNeeded(asset);

            audio.Export(path);
        }