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
Afficher le fichier Open project: rstaewen/Pharos Class Usage Examples

Méthodes publiques

Свойство Type Description
GameView EditorWindow
LastEditorFrameTime float
_ImportReadableTextures bool

Méthodes publiques

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

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

public DoParameterHeader ( MBEditorParameterHandler, handler ) : bool
handler MBEditorParameterHandler,
Résultat bool

DoParameterInfo() public méthode

public DoParameterInfo ( MBParameterInfo, info ) : void
info MBParameterInfo,
Résultat void

DoSectionHeader() public méthode

public DoSectionHeader ( string caption, Color backgroundColor, bool canToggle ) : bool
caption string
backgroundColor Color
canToggle bool
Résultat bool

EditorUpdate() public static méthode

public static EditorUpdate ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

InitializeTree() public méthode

public InitializeTree ( ) : void
Résultat void

InstantiateParameterHandler() public méthode

public InstantiateParameterHandler ( ) : void
Résultat void

OnPlaymodeChange() public static méthode

public static OnPlaymodeChange ( ) : void
Résultat void

RepaintEditor() public static méthode

public static RepaintEditor ( bool immediately ) : void
immediately bool
Résultat void

Select() public static méthode

public static Select ( Object obj ) : void
obj Object
Résultat void

SelectDebuggingTab() public méthode

public SelectDebuggingTab ( ) : void
Résultat void

SelectEmitterTypeTab() public méthode

public SelectEmitterTypeTab ( ) : void
Résultat void

SelectParameterTab() public méthode

public SelectParameterTab ( ) : void
Résultat void

ShowWindow() public static méthode

public static ShowWindow ( ) : void
Résultat void

SnapshotScene() public static méthode

public static SnapshotScene ( string name ) : void
name string
Résultat void

Property Details

GameView public_oe static_oe property

public static EditorWindow GameView
Résultat EditorWindow

LastEditorFrameTime public_oe static_oe property

To calculate ParticleSystem's DeltaTime in editor
public static float LastEditorFrameTime
Résultat float

_ImportReadableTextures public_oe static_oe property

public static bool _ImportReadableTextures
Résultat bool