Class CeresGraphEditorWindow
Implements
IHasCustomMenu
Namespace: Ceres.Editor.Graph
Assembly: cs.temp.dll.dll
Syntax
public abstract class CeresGraphEditorWindow : EditorWindow, IHasCustomMenu
Properties
Container
Actual graph container of this window
Declaration
public ICeresGraphContainer Container { get; protected set; }
Property Value
Type | Description |
---|---|
ICeresGraphContainer |
Identifier
Unique object key per window
Declaration
public CeresGraphIdentifier Identifier { get; protected set; }
Property Value
Type | Description |
---|---|
CeresGraphIdentifier |
Methods
AddItemsToMenu(GenericMenu)
Declaration
public virtual void AddItemsToMenu(GenericMenu menu)
Parameters
Type | Name | Description |
---|---|---|
GenericMenu | menu |
GetContainerType()
Declaration
public Type GetContainerType()
Returns
Type | Description |
---|---|
Type |
Initialize(ICeresGraphContainer)
Setup EditorWindow
Declaration
protected void Initialize(ICeresGraphContainer container)
Parameters
Type | Name | Description |
---|---|---|
ICeresGraphContainer | container |
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
OnInitialize()
Initialize graph view in this stage
Declaration
protected virtual void OnInitialize()
PreReload()
Called before reload
Declaration
protected virtual void PreReload()
Reload()
Reload editor window
Declaration
protected virtual void Reload()
SetContainerType(Type)
Set graph container type explicitly, useful when your runtime container is different from editor
Declaration
public void SetContainerType(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType |
Implements
IHasCustomMenu