Пример #1
0
        public override IEnumerable<AssetItem> Import(UFile rawAssetPath, AssetImporterParameters importParameters)
        {
            var asset = new RawAsset { Source = rawAssetPath };

            // Creates the url to the raw asset
            var rawAssetUrl = new UFile(rawAssetPath.GetFileName(), null);

            yield return new AssetItem(rawAssetUrl, asset);
        }
Пример #2
0
        public override IEnumerable <AssetItem> Import(UFile rawAssetPath, AssetImporterParameters importParameters)
        {
            var asset = new RawAsset {
                Source = rawAssetPath
            };

            // Creates the url to the raw asset
            var rawAssetUrl = new UFile(rawAssetPath.GetFileName());

            yield return(new AssetItem(rawAssetUrl, asset));
        }