예제 #1
0
        public void ExportClip(AudioClip audioClip)
        {
            var relPath = ExportUtils.GetRelPathFromAsset(_engine.Options.Subfolder, audioClip);
            var newName = EvaluateAudioClipName(audioClip);

            _engine.TryCopyFile(AssetDatabase.GetAssetPath(audioClip), newName);
        }
예제 #2
0
        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));
            }
        }