Example #1
0
        public sealed override IEnumerable <AssetItem> Import([NotNull] UFile rawAssetPath, AssetImporterParameters importParameters)
        {
            if (rawAssetPath == null)
            {
                throw new ArgumentNullException(nameof(rawAssetPath));
            }

            var asset = new TAsset {
                Source = rawAssetPath
            };
            // Creates the url to the raw asset
            var rawAssetUrl = new UFile(rawAssetPath.GetFileNameWithoutExtension());

            yield return(new AssetItem(rawAssetUrl, asset));
        }
Example #2
0
 public abstract IEnumerable <AssetItem> Import(UFile rawAssetPath, AssetImporterParameters importParameters);