Class CeresGraphView
Inheritance
object
CeresGraphView
Assembly: cs.temp.dll.dll
Syntax
public abstract class CeresGraphView : GraphView, IVariableSource
Constructors
CeresGraphView(CeresGraphEditorWindow)
Declaration
protected CeresGraphView(CeresGraphEditorWindow editorWindow)
Parameters
Properties
Blackboard
Declaration
public CeresBlackboard Blackboard { get; }
Property Value
Declaration
public ContextualMenuRegistry ContextualMenuRegistry { get; }
Property Value
EditorWindow
Declaration
public CeresGraphEditorWindow EditorWindow { get; set; }
Property Value
NodeGroupHandler
Declaration
public NodeGroupHandler NodeGroupHandler { get; }
Property Value
NodeViews
Declaration
public HashSet<ICeresNodeView> NodeViews { get; }
Property Value
Type |
Description |
System.Collections.Generic.HashSet<T><ICeresNodeView> |
|
SearchWindow
Declaration
protected CeresNodeSearchWindow SearchWindow { get; }
Property Value
SharedVariables
Declaration
public List<SharedVariable> SharedVariables { get; }
Property Value
Methods
AddBlackboard(CeresBlackboard, Rect)
Add custom blackboard to graph
Declaration
public void AddBlackboard(CeresBlackboard blackboard, Rect rect)
Parameters
AddBlackboard(CeresBlackboard)
Add custom blackboard to graph
Declaration
public void AddBlackboard(CeresBlackboard blackboard)
Parameters
AddNodeGroupHandler(NodeGroupHandler)
Declaration
public void AddNodeGroupHandler(NodeGroupHandler groupHandler)
Parameters
AddNodeView(ICeresNodeView)
Add custom node view to graph
Declaration
public virtual void AddNodeView(ICeresNodeView nodeView)
Parameters
AddSearchWindow<T>()
Add custom node search window to graph
Declaration
public void AddSearchWindow<T>() where T : CeresNodeSearchWindow
Type Parameters
AddSharedVariables(List<SharedVariable>, bool)
Add shared variables to graph's blackboard
Declaration
public virtual void AddSharedVariables(List<SharedVariable> variables, bool duplicateWhenConflict)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T><SharedVariable> |
variables |
|
bool |
duplicateWhenConflict |
|
AddStyleSheet(string)
Declaration
public void AddStyleSheet(string resourcePath)
Parameters
Type |
Name |
Description |
string |
resourcePath |
|
Declaration
public override void BuildContextualMenu(ContextualMenuPopulateEvent evt)
Parameters
Type |
Name |
Description |
ContextualMenuPopulateEvent |
evt |
|
CanPasteSerializedGraph(string)
Declaration
protected virtual bool CanPasteSerializedGraph(string serializedData)
Parameters
Type |
Name |
Description |
string |
serializedData |
|
Returns
ClearDirty()
Clear graph view's dirty flag.
Declaration
FindNodeView(string)
Declaration
public ICeresNodeView FindNodeView(string guid)
Parameters
Type |
Name |
Description |
string |
guid |
|
Returns
FindNodeView<TNodeView>(string)
Find generic node by guid
Declaration
public TNodeView FindNodeView<TNodeView>(string guid) where TNodeView : class, ICeresNodeView
Parameters
Type |
Name |
Description |
string |
guid |
|
Returns
Type |
Description |
TNodeView |
|
Type Parameters
Name |
Description |
TNodeView |
|
GetCompatiblePorts(Port, NodeAdapter)
Declaration
public override List<Port> GetCompatiblePorts(Port startPort, NodeAdapter nodeAdapter)
Parameters
Type |
Name |
Description |
Port |
startPort |
|
NodeAdapter |
nodeAdapter |
|
Returns
Type |
Description |
System.Collections.Generic.List<T><Port> |
|
GetOrLoadStyleSheet(string)
Declaration
public static StyleSheet GetOrLoadStyleSheet(string resourcePath)
Parameters
Type |
Name |
Description |
string |
resourcePath |
|
Returns
Type |
Description |
StyleSheet |
|
GetOrLoadVisualTreeAsset(string)
Declaration
public static VisualTreeAsset GetOrLoadVisualTreeAsset(string resourcePath)
Parameters
Type |
Name |
Description |
string |
resourcePath |
|
Returns
Type |
Description |
VisualTreeAsset |
|
IsDirty()
Whether graph view is dirty
Declaration
Returns
OnCopySerializedGraph(IEnumerable<GraphElement>)
Declaration
protected virtual string OnCopySerializedGraph(IEnumerable<GraphElement> elements)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T><GraphElement> |
elements |
|
Returns
OnDestroy()
Called after detached from editor window
Declaration
protected virtual void OnDestroy()
Declaration
protected virtual void OnDragDropElementPerform(List<ISelectable> selectables, GraphElement graphElement, Vector3 mousePosition)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T><ISelectable> |
selectables |
|
GraphElement |
graphElement |
|
Vector3 |
mousePosition |
|
Declaration
protected virtual void OnDragDropObjectPerform(UObject data, Vector3 mousePosition)
Parameters
Type |
Name |
Description |
UObject |
data |
|
Vector3 |
mousePosition |
|
OnGraphViewChanged(GraphViewChange)
Declaration
protected virtual GraphViewChange OnGraphViewChanged(GraphViewChange graphViewChange)
Parameters
Type |
Name |
Description |
GraphViewChange |
graphViewChange |
|
Returns
Type |
Description |
GraphViewChange |
|
OnNodeCreationRequest(NodeCreationContext)
Declaration
protected virtual void OnNodeCreationRequest(NodeCreationContext context)
Parameters
Type |
Name |
Description |
NodeCreationContext |
context |
|
OnPasteSerializedGraph(string, string)
Declaration
protected virtual void OnPasteSerializedGraph(string operationName, string serializedData)
Parameters
Type |
Name |
Description |
string |
operationName |
|
string |
serializedData |
|
OpenSearch(Vector2, CeresPortView)
Open node search window with input port
Declaration
public virtual void OpenSearch(Vector2 screenPosition, CeresPortView portView)
Parameters
Type |
Name |
Description |
Vector2 |
screenPosition |
|
CeresPortView |
portView |
|
OpenSearch(Vector2)
Declaration
public virtual void OpenSearch(Vector2 screenPosition)
Parameters
Type |
Name |
Description |
Vector2 |
screenPosition |
|
SetDirty()
Marks graph view as dirty
Declaration
Implements