C# Class UnityEditor.TextureImporter

Inheritance: AssetImporter
Mostrar archivo Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
ClearPlatformTextureSettings void
DoesSourceTextureHaveAlpha bool
DoesSourceTextureHaveColor bool
FormatFromTextureParameters TextureImporterFormat
GetAllowsAlphaSplitting bool
GetImportWarnings string
GetPlatformTextureSettings bool
GetWidthAndHeight void
INTERNAL_get_spriteBorder void
INTERNAL_get_spritePivot void
INTERNAL_set_spriteBorder void
INTERNAL_set_spritePivot void
Internal_GetPlatformTextureSettings void
IsETC1SupportedByBuildTarget bool
IsSourceTextureHDR bool
IsTextureFormatETC1Compression bool
ReadTextureImportInstructions void
ReadTextureSettings void
SetAllowsAlphaSplitting void
SetPlatformTextureSettings void
SetPlatformTextureSettings void
SetPlatformTextureSettings void
SetPlatformTextureSettings void
SetTextureSettings void

Public Methods

Method Description
GetAutomaticFormat ( string platform ) : TextureImporterFormat

TODO.

GetDefaultPlatformTextureSettings ( ) : TextureImporterPlatformSettings

Get the default platform specific texture settings.

GetPlatformTextureSettings ( string platform ) : TextureImporterPlatformSettings

Get platform specific texture settings.

GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat ) : bool
GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat, int &compressionQuality ) : bool

Private Methods

Method Description
ClearPlatformTextureSettings ( string platform ) : void
DoesSourceTextureHaveAlpha ( ) : bool
DoesSourceTextureHaveColor ( ) : bool
FormatFromTextureParameters ( TextureImporterSettings settings, TextureImporterPlatformSettings platformSettings, bool doesTextureContainAlpha, bool sourceWasHDR, BuildTarget destinationPlatform ) : TextureImporterFormat
GetAllowsAlphaSplitting ( ) : bool
GetImportWarnings ( ) : string
GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat, int &compressionQuality, bool &etc1AlphaSplitEnabled ) : bool
GetWidthAndHeight ( int &width, int &height ) : void
INTERNAL_get_spriteBorder ( Vector4 &value ) : void
INTERNAL_get_spritePivot ( Vector2 &value ) : void
INTERNAL_set_spriteBorder ( Vector4 &value ) : void
INTERNAL_set_spritePivot ( Vector2 &value ) : void
Internal_GetPlatformTextureSettings ( string platform, TextureImporterPlatformSettings dest ) : void
IsETC1SupportedByBuildTarget ( BuildTarget target ) : bool
IsSourceTextureHDR ( ) : bool
IsTextureFormatETC1Compression ( TextureFormat fmt ) : bool
ReadTextureImportInstructions ( BuildTarget target, TextureFormat &desiredFormat, ColorSpace &colorSpace, int &compressionQuality ) : void
ReadTextureSettings ( TextureImporterSettings dest ) : void
SetAllowsAlphaSplitting ( bool flag ) : void
SetPlatformTextureSettings ( TextureImporterPlatformSettings platformSettings ) : void
SetPlatformTextureSettings ( string platform, int maxTextureSize, TextureImporterFormat textureFormat ) : void
SetPlatformTextureSettings ( string platform, int maxTextureSize, TextureImporterFormat textureFormat, [ allowsAlphaSplit ) : void
SetPlatformTextureSettings ( string platform, int maxTextureSize, TextureImporterFormat textureFormat, int compressionQuality, bool allowsAlphaSplit ) : void
SetTextureSettings ( TextureImporterSettings src ) : void

Method Details

GetAutomaticFormat() public method

TODO.

public GetAutomaticFormat ( string platform ) : TextureImporterFormat
platform string
return TextureImporterFormat

GetDefaultPlatformTextureSettings() public method

Get the default platform specific texture settings.

public GetDefaultPlatformTextureSettings ( ) : TextureImporterPlatformSettings
return TextureImporterPlatformSettings

GetPlatformTextureSettings() public method

Get platform specific texture settings.

public GetPlatformTextureSettings ( string platform ) : TextureImporterPlatformSettings
platform string The platform whose settings are required (see below).
return TextureImporterPlatformSettings

GetPlatformTextureSettings() public method

public GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat ) : bool
platform string
maxTextureSize int
textureFormat TextureImporterFormat
return bool

GetPlatformTextureSettings() public method

public GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat, int &compressionQuality ) : bool
platform string
maxTextureSize int
textureFormat TextureImporterFormat
compressionQuality int
return bool