C# Class UnityEditor.CurvePresetLibrary

Inheritance: PresetLibrary
显示文件 Open project: randomize/VimConfig Class Usage Examples

Public Methods

Method Description
Add ( object presetObject, string presetName ) : void
Count ( ) : int
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
DrawInternal ( Rect rect, AnimationCurve animCurve ) : 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

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