C# Class UnityEditor.ColorPresetLibrary

Inheritance: PresetLibrary
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
Add ( object presetObject, string presetName ) : void
Count ( ) : int
CreateDebugColors ( ) : void
Draw ( Rect rect, int index ) : void
Draw ( Rect rect, object presetObject ) : void
GetName ( int index ) : string
GetPreset ( int index ) : object
Move ( int index, int destIndex, bool insertAfterDestIndex ) : void
Remove ( int index ) : void
Replace ( int index, object newPresetObject ) : void
SetName ( int index, string presetName ) : void

Private Methods

Method Description
CreateColorSwatchWithBorder ( int width, int height, bool triangular ) : Texture2D
DrawInternal ( Rect rect, Color preset ) : void
Init ( ) : void
OnDestroy ( ) : void
RenderSolidSwatch ( Rect rect, Color preset ) : void
RenderSwatchWithAlpha ( Rect rect, Color preset, Texture2D swatchTexture ) : void

Method Details

Add() public method

public Add ( object presetObject, string presetName ) : void
presetObject object
presetName string
return void

Count() public method

public Count ( ) : int
return int

CreateDebugColors() public method

public CreateDebugColors ( ) : void
return void

Draw() public method

public Draw ( Rect rect, int index ) : void
rect UnityEngine.Rect
index int
return void

Draw() public method

public Draw ( Rect rect, object presetObject ) : void
rect UnityEngine.Rect
presetObject object
return void

GetName() public method

public GetName ( int index ) : string
index int
return string

GetPreset() public method

public GetPreset ( int index ) : object
index int
return object

Move() public method

public Move ( int index, int destIndex, bool insertAfterDestIndex ) : void
index int
destIndex int
insertAfterDestIndex bool
return void

Remove() public method

public Remove ( int index ) : void
index int
return void

Replace() public method

public Replace ( int index, object newPresetObject ) : void
index int
newPresetObject object
return void

SetName() public method

public SetName ( int index, string presetName ) : void
index int
presetName string
return void