C# Класс UnityEditor.GradientEditor

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

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

Метод Описание
CreateCheckerTexture ( int numCols, int numRows, int cellPixelWidth, Color col1, Color col2 ) : Texture2D
DrawGradientSwatch ( Rect position, Gradient gradient, Color bgColor ) : void
DrawGradientSwatch ( Rect position, UnityEditor.SerializedProperty property, Color bgColor ) : void
DrawGradientWithBackground ( Rect position, Texture2D gradientTexture ) : void
GetBackgroundTexture ( ) : Texture2D
Init ( Gradient gradient, int numSteps ) : void
OnGUI ( Rect position ) : void

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

Метод Описание
AssignBack ( ) : void
BuildArrays ( ) : void
CalcSwatchRect ( Rect totalRect, Swatch s ) : Rect
DrawGradientSwatchInternal ( Rect position, Gradient gradient, UnityEditor.SerializedProperty property, Color bgColor ) : void
DrawSwatch ( Rect totalPos, Swatch s, bool upwards ) : void
GetTime ( float actualTime ) : float
RemoveDuplicateOverlappingSwatches ( ) : void
ShowSwatchArray ( Rect position, List swatches, bool isAlpha ) : void
SwatchSort ( Swatch lhs, Swatch rhs ) : int

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

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

public static CreateCheckerTexture ( int numCols, int numRows, int cellPixelWidth, Color col1, Color col2 ) : Texture2D
numCols int
numRows int
cellPixelWidth int
col1 Color
col2 Color
Результат UnityEngine.Texture2D

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

public static DrawGradientSwatch ( Rect position, Gradient gradient, Color bgColor ) : void
position UnityEngine.Rect
gradient UnityEngine.Gradient
bgColor Color
Результат void

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

public static DrawGradientSwatch ( Rect position, UnityEditor.SerializedProperty property, Color bgColor ) : void
position UnityEngine.Rect
property UnityEditor.SerializedProperty
bgColor Color
Результат void

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

public static DrawGradientWithBackground ( Rect position, Texture2D gradientTexture ) : void
position UnityEngine.Rect
gradientTexture UnityEngine.Texture2D
Результат void

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

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

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

public Init ( Gradient gradient, int numSteps ) : void
gradient UnityEngine.Gradient
numSteps int
Результат void

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

public OnGUI ( Rect position ) : void
position UnityEngine.Rect
Результат void