C# Class UnityEditor.GradientEditor

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CreateCheckerTexture() public static méthode

public static CreateCheckerTexture ( int numCols, int numRows, int cellPixelWidth, Color col1, Color col2 ) : Texture2D
numCols int
numRows int
cellPixelWidth int
col1 Color
col2 Color
Résultat UnityEngine.Texture2D

DrawGradientSwatch() public static méthode

public static DrawGradientSwatch ( Rect position, Gradient gradient, Color bgColor ) : void
position UnityEngine.Rect
gradient UnityEngine.Gradient
bgColor Color
Résultat void

DrawGradientSwatch() public static méthode

public static DrawGradientSwatch ( Rect position, UnityEditor.SerializedProperty property, Color bgColor ) : void
position UnityEngine.Rect
property UnityEditor.SerializedProperty
bgColor Color
Résultat void

DrawGradientWithBackground() public static méthode

public static DrawGradientWithBackground ( Rect position, Texture2D gradientTexture ) : void
position UnityEngine.Rect
gradientTexture UnityEngine.Texture2D
Résultat void

GetBackgroundTexture() public static méthode

public static GetBackgroundTexture ( ) : Texture2D
Résultat UnityEngine.Texture2D

Init() public méthode

public Init ( Gradient gradient, int numSteps ) : void
gradient UnityEngine.Gradient
numSteps int
Résultat void

OnGUI() public méthode

public OnGUI ( Rect position ) : void
position UnityEngine.Rect
Résultat void