C# Class MBEditor, Pharos

Main editor class.
You usually don't need to do changes here. Instead create a class that inherites from MBEditorEmitterTypeHandler or MBEditorParameterHandler to create your custom GUI
Inheritance: EditorWindow
Show file Open project: rstaewen/Pharos Class Usage Examples

Public Properties

Property Type Description
GameView EditorWindow
LastEditorFrameTime float
_ImportReadableTextures bool

Public Methods

Method Description
DoParameterHeader ( MBEditorParameterHandler, handler ) : bool
DoParameterInfo ( MBParameterInfo, info ) : void
DoSectionHeader ( string caption, Color backgroundColor, bool canToggle ) : bool
EditorUpdate ( ) : void
Initialize ( ) : void
InitializeTree ( ) : void
InstantiateParameterHandler ( ) : void
OnPlaymodeChange ( ) : void
RepaintEditor ( bool immediately ) : void
Select ( Object obj ) : void
SelectDebuggingTab ( ) : void
SelectEmitterTypeTab ( ) : void
SelectParameterTab ( ) : void
ShowWindow ( ) : void
SnapshotScene ( string name ) : void

Private Methods

Method Description
AddEmitterTypeMenu ( ) : void

Creates a custom menu for replacing emittertype

AddParameterMenu ( ) : void

Creates a custom menu for adding parameters

ClearHandlers ( ) : void
DoAnchorGUI ( ) : void
DoDebuggingGUI ( MBEmitter em ) : void
DoEmitterGUI ( ) : void
DoLayerGUI ( ) : void
DoOverviewGUI ( ) : void
DoParameterGUI ( MBEmitter em ) : void
DoSystemGUI ( ) : void
DoToolbarGUI ( ) : void
FetchTree ( MBObject, obj, int indent ) : void
InitializeEmitter ( ) : void
InitializeHandlerMap ( ) : void
InstantiateEMTypeHandler ( ) : void
LayerSelectMenu ( ) : void
ObjectIcon ( System type ) : Texture
OnAddEmitterTypeMenu ( object userData, string options, int selected ) : void
OnAddParameterMenu ( object userData, string options, int selected ) : void

Called when the user selects an entry from the Parameter-Menu

OnDisable ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
OnHierarchyChange ( ) : void
OnLayerSelectMenu ( object userData, string options, int selected ) : void
OnSelectionChange ( ) : void
ParameterCaption ( MBEditorParameterHandler, handler ) : string
Update ( ) : void

Method Details

DoParameterHeader() public method

public DoParameterHeader ( MBEditorParameterHandler, handler ) : bool
handler MBEditorParameterHandler,
return bool

DoParameterInfo() public method

public DoParameterInfo ( MBParameterInfo, info ) : void
info MBParameterInfo,
return void

DoSectionHeader() public method

public DoSectionHeader ( string caption, Color backgroundColor, bool canToggle ) : bool
caption string
backgroundColor Color
canToggle bool
return bool

EditorUpdate() public static method

public static EditorUpdate ( ) : void
return void

Initialize() public method

public Initialize ( ) : void
return void

InitializeTree() public method

public InitializeTree ( ) : void
return void

InstantiateParameterHandler() public method

public InstantiateParameterHandler ( ) : void
return void

OnPlaymodeChange() public static method

public static OnPlaymodeChange ( ) : void
return void

RepaintEditor() public static method

public static RepaintEditor ( bool immediately ) : void
immediately bool
return void

Select() public static method

public static Select ( Object obj ) : void
obj Object
return void

SelectDebuggingTab() public method

public SelectDebuggingTab ( ) : void
return void

SelectEmitterTypeTab() public method

public SelectEmitterTypeTab ( ) : void
return void

SelectParameterTab() public method

public SelectParameterTab ( ) : void
return void

ShowWindow() public static method

public static ShowWindow ( ) : void
return void

SnapshotScene() public static method

public static SnapshotScene ( string name ) : void
name string
return void

Property Details

GameView public static property

public static EditorWindow GameView
return EditorWindow

LastEditorFrameTime public static property

To calculate ParticleSystem's DeltaTime in editor
public static float LastEditorFrameTime
return float

_ImportReadableTextures public static property

public static bool _ImportReadableTextures
return bool