C# Class UnityEditor.ColorPresetLibrary

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

Méthodes publiques

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

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

public Add ( object presetObject, string presetName ) : void
presetObject object
presetName string
Résultat void

Count() public méthode

public Count ( ) : int
Résultat int

CreateDebugColors() public méthode

public CreateDebugColors ( ) : void
Résultat void

Draw() public méthode

public Draw ( Rect rect, int index ) : void
rect UnityEngine.Rect
index int
Résultat void

Draw() public méthode

public Draw ( Rect rect, object presetObject ) : void
rect UnityEngine.Rect
presetObject object
Résultat void

GetName() public méthode

public GetName ( int index ) : string
index int
Résultat string

GetPreset() public méthode

public GetPreset ( int index ) : object
index int
Résultat object

Move() public méthode

public Move ( int index, int destIndex, bool insertAfterDestIndex ) : void
index int
destIndex int
insertAfterDestIndex bool
Résultat void

Remove() public méthode

public Remove ( int index ) : void
index int
Résultat void

Replace() public méthode

public Replace ( int index, object newPresetObject ) : void
index int
newPresetObject object
Résultat void

SetName() public méthode

public SetName ( int index, string presetName ) : void
index int
presetName string
Résultat void