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)); }
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; }