C# Class UnityEditor.TextureUtil

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetTexelSizeVector ( Texture t ) : Vector4

Private Methods

Method Description
ConvertToAlphaTextureFormat ( TextureFormat format ) : TextureFormat
CopyCubemapFaceIntoTexture ( Cubemap cubemapRef, CubemapFace face, Texture2D textureRef ) : void
CopyTextureIntoCubemapFace ( Texture2D textureRef, Cubemap cubemapRef, CubemapFace face ) : void
DoesTextureStillNeedToBeCompressed ( string assetPath ) : bool
GetBytesFromTextureFormat ( TextureFormat inFormat ) : int
GetDefaultCompressionQuality ( ) : int
GetGPUHeight ( Texture t ) : int
GetGPUWidth ( Texture t ) : int
GetLinearSampled ( Texture t ) : bool
GetMipmapCount ( Texture t ) : int
GetRowBytesFromWidthAndFormat ( int width, TextureFormat format ) : int
GetRuntimeMemorySize ( Texture t ) : int
GetSourceTexture ( Cubemap cubemapRef, CubemapFace face ) : Texture2D
GetStorageMemorySize ( Texture t ) : int
GetTextureColorSpaceString ( Texture texture ) : string
GetTextureFormat ( Texture texture ) : TextureFormat
GetTextureFormatString ( TextureFormat format ) : string
GetUsageMode ( Texture t ) : TextureUsageMode
HasAlphaTextureFormat ( TextureFormat format ) : bool
HasMipMap ( Texture t ) : bool
INTERNAL_CALL_GetTexelSizeVector ( Texture t, Vector4 &value ) : void
IsAlphaOnlyTextureFormat ( TextureFormat format ) : bool
IsCompressedTextureFormat ( TextureFormat format ) : bool
IsCubemapReadable ( Cubemap cubemapRef ) : bool
IsDepthRTFormat ( RenderTextureFormat format ) : bool
IsNonPowerOfTwo ( Texture2D t ) : bool
IsValidTextureFormat ( TextureFormat format ) : bool
MarkCubemapReadable ( Cubemap cubemapRef, bool readable ) : void
ReformatCubemap ( Cubemap &cubemap, int width, int height, TextureFormat textureFormat, bool useMipmap, bool linear ) : bool
ReformatTexture ( Texture2D &texture, int width, int height, TextureFormat textureFormat, bool useMipmap, bool linear ) : bool
SetAnisoLevelNoDirty ( Texture tex, int level ) : void
SetFilterModeNoDirty ( Texture tex, FilterMode mode ) : void
SetMipMapBiasNoDirty ( Texture tex, float bias ) : void
SetSourceTexture ( Cubemap cubemapRef, CubemapFace face, Texture2D tex ) : void
SetWrapModeNoDirty ( Texture tex, TextureWrapMode mode ) : void

Method Details

GetTexelSizeVector() public static method

public static GetTexelSizeVector ( Texture t ) : Vector4
t UnityEngine.Texture
return Vector4