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

            // Creates the url to the texture
            var textureUrl = new UFile(rawAssetPath.GetFileNameWithoutExtension());

            yield return(new AssetItem(textureUrl, asset));
        }
Пример #2
0
 public TextureConvertParameters(
     UFile sourcePathFromDisk, 
     TextureAsset texture, 
     PlatformType platform, 
     GraphicsPlatform graphicsPlatform, 
     GraphicsProfile graphicsProfile, 
     TextureQuality textureQuality,
     ColorSpace colorSpace)
 {
     SourcePathFromDisk = sourcePathFromDisk;
     Texture = texture;
     IsStreamable = texture.IsStreamable;
     Platform = platform;
     GraphicsPlatform = graphicsPlatform;
     GraphicsProfile = graphicsProfile;
     TextureQuality = textureQuality;
     ColorSpace = colorSpace;
 }