public void ExportClip(AudioClip audioClip) { var relPath = ExportUtils.GetRelPathFromAsset(_engine.Options.Subfolder, audioClip); var newName = EvaluateAudioClipName(audioClip); _engine.TryCopyFile(AssetDatabase.GetAssetPath(audioClip), newName); }
private void CopyTexture(Texture texture) { var relPath = ExportUtils.GetRelPathFromAsset(_engine.Options.Subfolder, texture); var newName = EvaluateTextureName(texture); if (relPath != newName) { CopyTextureAndSaveAs(texture); } else { _engine.TryCopyFile(AssetDatabase.GetAssetPath(texture), newName); WriteOptions(texture.GetKey(), newName, ExportUtils.GetLastWriteTimeUtc(texture), ExportUtils.GetTextureOptions(texture)); } }