C# Класс UnityEngine.Texture2DArray

Class for handling 2D texture arrays.

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

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

Метод Описание
Texture2DArray ( int width, int height, int depth, TextureFormat format, bool mipmap ) : System

Create a new texture array.

Texture2DArray ( int width, int height, int depth, TextureFormat format, bool mipmap, bool linear ) : System

Create a new texture array.

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

Метод Описание
Apply ( ) : void
Apply ( [ updateMipmaps, [ makeNoLongerReadable ) : void
Apply ( bool updateMipmaps ) : void
GetPixels ( int arrayElement ) : Color[]
GetPixels ( int arrayElement, [ miplevel ) : Color[]
GetPixels32 ( int arrayElement ) : UnityEngine.Color32[]
GetPixels32 ( int arrayElement, [ miplevel ) : UnityEngine.Color32[]
Internal_Create ( [ mono, int width, int height, int depth, TextureFormat format, bool mipmap, bool linear ) : void
SetPixels ( Color colors, int arrayElement ) : void
SetPixels ( Color colors, int arrayElement, [ miplevel ) : void
SetPixels32 ( Color32 colors, int arrayElement ) : void
SetPixels32 ( Color32 colors, int arrayElement, [ miplevel ) : void

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

Texture2DArray() публичный Метод

Create a new texture array.

public Texture2DArray ( int width, int height, int depth, TextureFormat format, bool mipmap ) : System
width int Width of texture array in pixels.
height int Height of texture array in pixels.
depth int Number of elements in the texture array.
format TextureFormat Format of the texture.
mipmap bool Should mipmaps be created?
Результат System

Texture2DArray() публичный Метод

Create a new texture array.

public Texture2DArray ( int width, int height, int depth, TextureFormat format, bool mipmap, bool linear ) : System
width int Width of texture array in pixels.
height int Height of texture array in pixels.
depth int Number of elements in the texture array.
format TextureFormat Format of the texture.
mipmap bool Should mipmaps be created?
linear bool Does the texture contain non-color data (i.e. don't do any color space conversions when sampling)? Default is false.
Результат System