C# 클래스 UnityEditor.GradientEditor

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
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