C# Class UnityEditor.GradientEditor

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

Public Methods

Method 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

Method 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 method

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

DrawGradientSwatch() public static method

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

DrawGradientSwatch() public static method

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

DrawGradientWithBackground() public static method

public static DrawGradientWithBackground ( Rect position, Texture2D gradientTexture ) : void
position UnityEngine.Rect
gradientTexture UnityEngine.Texture2D
return void

GetBackgroundTexture() public static method

public static GetBackgroundTexture ( ) : Texture2D
return UnityEngine.Texture2D

Init() public method

public Init ( Gradient gradient, int numSteps ) : void
gradient UnityEngine.Gradient
numSteps int
return void

OnGUI() public method

public OnGUI ( Rect position ) : void
position UnityEngine.Rect
return void