Class CeresGraphEditorWindow<TContainer, TKWindow>
public abstract class CeresGraphEditorWindow<TContainer, TKWindow> : CeresGraphEditorWindow, IHasCustomMenu where TContainer : class, ICeresGraphContainer where TKWindow : CeresGraphEditorWindow<TContainer, TKWindow>
Type Parameters
TContainerTKWindow
- Inheritance
-
CeresGraphEditorWindow<TContainer, TKWindow>
- Implements
-
IHasCustomMenu
- Derived
- Inherited Members
Constructors
CeresGraphEditorWindow()
protected CeresGraphEditorWindow()
Properties
ContainerT
Actual graph container of this window
public TContainer ContainerT { get; }
Property Value
- TContainer
Methods
GetContainer()
Get ICeresGraphContainer from editor window key object
public TContainer GetContainer()
Returns
- TContainer
GetOrCreateEditorWindow(TContainer)
Create CeresGraphEditorWindow instance, return cached window if existed
public static TKWindow GetOrCreateEditorWindow(TContainer container)
Parameters
containerTContainer
Returns
- TKWindow
OnDisable()
protected override void OnDisable()
OnEnable()
protected override void OnEnable()
OnReloadGraphView()
Construct graph view after reloading
protected virtual void OnReloadGraphView()
Reload()
Reload editor window
protected override void Reload()
Show(TContainer)
Show the graph editor window for the container instance
public static TKWindow Show(TContainer container)
Parameters
containerTContainer
Returns
- TKWindow