C# Класс UnityEditor.TextureImporter

Наследование: AssetImporter
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetAutomaticFormat() публичный метод

TODO.

public GetAutomaticFormat ( string platform ) : TextureImporterFormat
platform string
Результат TextureImporterFormat

GetDefaultPlatformTextureSettings() публичный метод

Get the default platform specific texture settings.

public GetDefaultPlatformTextureSettings ( ) : TextureImporterPlatformSettings
Результат TextureImporterPlatformSettings

GetPlatformTextureSettings() публичный метод

Get platform specific texture settings.

public GetPlatformTextureSettings ( string platform ) : TextureImporterPlatformSettings
platform string The platform whose settings are required (see below).
Результат TextureImporterPlatformSettings

GetPlatformTextureSettings() публичный метод

public GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat ) : bool
platform string
maxTextureSize int
textureFormat TextureImporterFormat
Результат bool

GetPlatformTextureSettings() публичный метод

public GetPlatformTextureSettings ( string platform, int &maxTextureSize, TextureImporterFormat &textureFormat, int &compressionQuality ) : bool
platform string
maxTextureSize int
textureFormat TextureImporterFormat
compressionQuality int
Результат bool