C# Класс TextureDrawer, RPGQuest

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

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

Метод Описание
AddImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
AddPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
AddTexture ( Texture2D texture, Rect bounds, Color colors ) : Texture2D
AddTexture ( Texture2D texture, Rect bounds, Texture2D addTex ) : Texture2D
ClearTexture ( Texture2D texture ) : Texture2D
ColorLerpUnclamped ( Color c1, Color c2, float value ) : Color
Colorize ( Color colors, Color tint ) : Color[]
ColorizeAlphas ( float alphas, Color tint ) : Color[]
CopyTexture ( Texture2D texture ) : Texture2D
DivideAlpha ( Color colors, float alpha ) : Color[]
GetCleanTexture ( int width, int height ) : Texture2D
GetMaskTexture ( int width, int height, Rect maskBounds ) : Texture2D
GetNewTexture ( int width, int height ) : Texture2D
GetNextPowerOfTwo ( float number ) : int
GetNextPowerOfTwo ( int number ) : int
GetPixels ( Texture2D texture, int x, int y, int w, int h ) : Color[]
GetScaledColors ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledColorsBilinear ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledColorsPoint ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledPixels ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Rect bounds, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Vector2 size, ScaleMode, mode ) : Color[]
GetScaledSize ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Vector2
GetScaledSize ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Vector2
GetSecuredPixels ( Texture2D texture, int x, int y, int width, int height ) : Color[]
MultiplyAlpha ( Color colors, float alpha ) : Color[]
PasteColors ( Color topPixels, Color bottomPixels ) : Color[]
ReplaceColors ( Color colors, Color oldColor, Color newColor ) : Color[]
SetImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
SetPixelColors ( Texture2D texture, Rect bounds, Color c ) : Texture2D
SetPixels ( Texture2D texture, Color colors, Rect bounds ) : Texture2D
SetPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
SetPixels ( Texture2D texture, int sx, int sy, Texture2D texture2, int x, int y, int w, int h ) : Texture2D

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

AddImageTexture() публичный статический Метод

public static AddImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
bg SkinBG,
Результат UnityEngine.Texture2D

AddPixels() публичный статический Метод

public static AddPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
colors Color
x int
y int
w int
h int
Результат UnityEngine.Texture2D

AddTexture() публичный статический Метод

public static AddTexture ( Texture2D texture, Rect bounds, Color colors ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
colors Color
Результат UnityEngine.Texture2D

AddTexture() публичный статический Метод

public static AddTexture ( Texture2D texture, Rect bounds, Texture2D addTex ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
addTex UnityEngine.Texture2D
Результат UnityEngine.Texture2D

ClearTexture() публичный статический Метод

public static ClearTexture ( Texture2D texture ) : Texture2D
texture UnityEngine.Texture2D
Результат UnityEngine.Texture2D

ColorLerpUnclamped() публичный статический Метод

public static ColorLerpUnclamped ( Color c1, Color c2, float value ) : Color
c1 Color
c2 Color
value float
Результат Color

Colorize() публичный статический Метод

public static Colorize ( Color colors, Color tint ) : Color[]
colors Color
tint Color
Результат Color[]

ColorizeAlphas() публичный статический Метод

public static ColorizeAlphas ( float alphas, Color tint ) : Color[]
alphas float
tint Color
Результат Color[]

CopyTexture() публичный статический Метод

public static CopyTexture ( Texture2D texture ) : Texture2D
texture UnityEngine.Texture2D
Результат UnityEngine.Texture2D

DivideAlpha() публичный статический Метод

public static DivideAlpha ( Color colors, float alpha ) : Color[]
colors Color
alpha float
Результат Color[]

GetCleanTexture() публичный статический Метод

public static GetCleanTexture ( int width, int height ) : Texture2D
width int
height int
Результат UnityEngine.Texture2D

GetMaskTexture() публичный статический Метод

public static GetMaskTexture ( int width, int height, Rect maskBounds ) : Texture2D
width int
height int
maskBounds Rect
Результат UnityEngine.Texture2D

GetNewTexture() публичный статический Метод

public static GetNewTexture ( int width, int height ) : Texture2D
width int
height int
Результат UnityEngine.Texture2D

GetNextPowerOfTwo() публичный статический Метод

public static GetNextPowerOfTwo ( float number ) : int
number float
Результат int

GetNextPowerOfTwo() публичный статический Метод

public static GetNextPowerOfTwo ( int number ) : int
number int
Результат int

GetPixels() публичный статический Метод

public static GetPixels ( Texture2D texture, int x, int y, int w, int h ) : Color[]
texture UnityEngine.Texture2D
x int
y int
w int
h int
Результат Color[]

GetScaledColors() публичный статический Метод

public static GetScaledColors ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
Результат Color[]

GetScaledColorsBilinear() публичный статический Метод

public static GetScaledColorsBilinear ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
Результат Color[]

GetScaledColorsPoint() публичный статический Метод

public static GetScaledColorsPoint ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
Результат Color[]

GetScaledPixels() публичный статический Метод

public static GetScaledPixels ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
bounds Rect
mode ScaleMode,
Результат Color[]

GetScaledPixels() публичный статический Метод

public static GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Rect bounds, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
scaledSize Vector2
bounds Rect
mode ScaleMode,
Результат Color[]

GetScaledPixels() публичный статический Метод

public static GetScaledPixels ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
size Vector2
mode ScaleMode,
Результат Color[]

GetScaledPixels() публичный статический Метод

public static GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Vector2 size, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
scaledSize Vector2
size Vector2
mode ScaleMode,
Результат Color[]

GetScaledSize() публичный статический Метод

public static GetScaledSize ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Vector2
texture UnityEngine.Texture2D
bounds Rect
mode ScaleMode,
Результат Vector2

GetScaledSize() публичный статический Метод

public static GetScaledSize ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Vector2
texture UnityEngine.Texture2D
size Vector2
mode ScaleMode,
Результат Vector2

GetSecuredPixels() публичный статический Метод

public static GetSecuredPixels ( Texture2D texture, int x, int y, int width, int height ) : Color[]
texture UnityEngine.Texture2D
x int
y int
width int
height int
Результат Color[]

MultiplyAlpha() публичный статический Метод

public static MultiplyAlpha ( Color colors, float alpha ) : Color[]
colors Color
alpha float
Результат Color[]

PasteColors() публичный статический Метод

public static PasteColors ( Color topPixels, Color bottomPixels ) : Color[]
topPixels Color
bottomPixels Color
Результат Color[]

ReplaceColors() публичный статический Метод

public static ReplaceColors ( Color colors, Color oldColor, Color newColor ) : Color[]
colors Color
oldColor Color
newColor Color
Результат Color[]

SetImageTexture() публичный статический Метод

public static SetImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
bg SkinBG,
Результат UnityEngine.Texture2D

SetPixelColors() публичный статический Метод

public static SetPixelColors ( Texture2D texture, Rect bounds, Color c ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
c Color
Результат UnityEngine.Texture2D

SetPixels() публичный статический Метод

public static SetPixels ( Texture2D texture, Color colors, Rect bounds ) : Texture2D
texture UnityEngine.Texture2D
colors Color
bounds Rect
Результат UnityEngine.Texture2D

SetPixels() публичный статический Метод

public static SetPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
colors Color
x int
y int
w int
h int
Результат UnityEngine.Texture2D

SetPixels() публичный статический Метод

public static SetPixels ( Texture2D texture, int sx, int sy, Texture2D texture2, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
sx int
sy int
texture2 UnityEngine.Texture2D
x int
y int
w int
h int
Результат UnityEngine.Texture2D