Arbor 3: FSM & BT Graph Editor 3.4.0

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | Events | List of all members
NodeGraph Class Referenceabstract

Base class of node graph. More...

Inheritance diagram for NodeGraph:

## Public Member Functions
Node | GetNodeFromIndex (int index)
| Get Node from index. More...
Node | GetNodeFromID (int nodeID)
| Gets Arbor.Node from the node identifier. More...
CalculatorNode | GetCalculatorFromIndex (int index)
| Get CalculatorNode from index. More...
int | GetCalculatorIndex (CalculatorNode calculator)
| Get CalculatorNode index. More...
CalculatorNode | GetCalculatorFromID (int calculatorID)
| Gets Arbor.CalculatorNode from the calculator identifier. More...
CalculatorNode | CreateCalculator (int nodeID, System.Type calculatorType)
| Create calculator. More...
CalculatorNode | CreateCalculator (System.Type calculatorType)
| Create calculator. More...
CalculatorNode | FindCalculator (Calculator calculator)
| Acquisition of CalculatorNodes Calculator belongs. More...
bool | DeleteCalculator (CalculatorNode calculatorNode)
| Delete calculator. More...
CommentNode | GetCommentFromIndex (int index)
| Get CommentNode from index. More...
int | GetCommentIndex (CommentNode comment)
| Get CommentNode index. More...
CommentNode | GetCommentFromID (int commentID)
| Gets Arbor.CommentNode from the comment identifier. More...
CommentNode | CreateComment (int nodeID)
| Create comment. More...
CommentNode | CreateComment ()
| Create comment. More...
void | DeleteComment (CommentNode comment)
| Delete comment. More...
GroupNode | GetGroupFromIndex (int index)
| Get GroupNode from index. More...
GroupNode | CreateGroup (int nodeID)
| Create group. More...
GroupNode | CreateGroup ()
| Create group. More...
void | DeleteGroup (GroupNode group)
| Delete group. More...
GroupNode | GetGroupFromID (int groupID)
| Gets Arbor.GroupNode from the group identifier. More...
DataBranchRerouteNode | CreateDataBranchRerouteNode (Vector2 position, System.Type type, int nodeID)
| Create DataBranchRerouteNode. More...
DataBranchRerouteNode | CreateCalculatorBranchRerouteNode (Vector2 position, System.Type type, int nodeID)
| Create DataBranchRerouteNode. More...
DataBranchRerouteNode | CreateDataBranchRerouteNode (Vector2 position, System.Type type)
| Create DataBranchRerouteNode. More...
DataBranchRerouteNode | CreateCalculatorBranchRerouteNode (Vector2 position, System.Type type)
| Create DataBranchRerouteNode. More...
void | DeleteDataBranchRerouteNode (DataBranchRerouteNode rerouteNode)
| Delete DataBranchRerouteNode. More...
void | DeleteCalculatorBranchRerouteNode (DataBranchRerouteNode rerouteNode)
| Delete DataBranchRerouteNode. More...
virtual void | OnValidateNodes ()
| Called when the node is changed. More...
bool | DeleteNode (Node node)
| Delete node. More...
Node | FindNodeContainsBehaviour (NodeBehaviour behaviour)
| Acquisition of nodes NodeBehaviour belongs. More...
DataBranch | GetDataBranchFromIndex (int index)
| Get DataBranch from index. More...
DataBranch | GetCalculatorBranchFromIndex (int index)
| Get DataBranch from index. More...
int | GetDataBranchIndex (DataBranch branch)
| Get DataBranch index. More...
int | GetCalculatorBranchIndex (DataBranch branch)
| Get DataBranch index. More...
DataBranch | GetDataBranchFromID (int branchID)
| Gets Arbor.DataBranch from the calculator branch identifier. More...
DataBranch | GetCalculatorBranchFromID (int branchID)
| Gets Arbor.DataBranch from the calculator branch identifier. More...
DataBranch | ConnectDataBranch (int branchID, int inputNodeID, Object inputObj, DataSlot inputSlot, int outputNodeID, Object outputObj, DataSlot outputSlot)
| Connect DataSlot. More...
DataBranch | ConnectCalculatorBranch (int branchID, int inputNodeID, Object inputObj, DataSlot inputSlot, int outputNodeID, Object outputObj, DataSlot outputSlot)
| Connect DataSlot. More...
DataBranch | ConnectDataBranch (int inputNodeID, Object inputObj, DataSlot inputSlot, int outputNodeID, Object outputObj, DataSlot outputSlot)
| Connect DataSlot. More...
DataBranch | ConnectCalculatorBranch (int inputNodeID, Object inputObj, DataSlot inputSlot, int outputNodeID, Object outputObj, DataSlot outputSlot)
| Connect DataSlot. More...
void | DisconnectDataBranch (Object obj)
| Method to be used internally. More...
void | DeleteDataBranch (DataBranch branch)
| Delete DataBranch. More...
void | DeleteCalculatorBranch (DataBranch branch)
| Delete DataBranch. More...
bool | CheckLoopDataBranch (int inputNodeID, Object inputObj, int outputNodeID, Object outputObj)
| Check if DataBranch is looping. More...
bool | CheckLoopCalculatorBranch (int inputNodeID, Object inputObj, int outputNodeID, Object outputObj)
| Check if DataBranch is looping. More...
delegate void | NodeGraphCallback (NodeGraph nodeGraph)
| Delegate for NodeGraph callback More...
void | DestroySubComponents ()
| Method to be used internally. More...
override string | ToString ()
| Convert graph to string (for debugging). More...
void | OnPoolResume ()
| Called when resuming. More...
void | OnPoolSleep ()
| Called when stored in the pool. More...

## Static Public Member Functions
static NodeGraph | FindGraph (string name)
| Get the NodeGraph that in the scene with the name. More...
static NodeGraph | FindGraph (string name, System.Type type)
| Get the NodeGraph that in the scene with the name. More...
static T | FindGraph< T > (string name)
| Get the NodeGraph that in the scene with the name. More...
static NodeGraph[] | FindGraphs (string name)
| Get the NodeGraph of the same name that is in the scene. More...
static NodeGraph[] | FindGraphs (string name, System.Type type)
| Get the NodeGraph of the same name that is in the scene. More...
static T[] | FindGraphs< T > (string name)
| Get the NodeGraph of the same name that is in the scene. More...
static NodeGraph | FindGraph (GameObject gameObject, string name)
| Get NodeGraph in the name that has been attached to the GameObject. More...
static NodeGraph | FindGraph (GameObject gameObject, string name, System.Type type)
| Get NodeGraph in the name that has been attached to the GameObject. More...
static T | FindGraph< T > (GameObject gameObject, string name)
| Get NodeGraph in the name that has been attached to the GameObject. More...
static NodeGraph[] | FindGraphs (GameObject gameObject, string name)
| Get the NodeGraph of the same name that is attached to a GameObject. More...
static NodeGraph[] | FindGraphs (GameObject gameObject, string name, System.Type type)
| Get the NodeGraph of the same name that is attached to a GameObject. More...
static T[] | FindGraphs< T > (GameObject gameObject, string name)
| Get the NodeGraph of the same name that is attached to a GameObject. More...
static NodeGraph | Create (GameObject gameObject, System.Type classType)
| Create NodeGraph More...
static GraphType | Create< GraphType > (GameObject gameObject)
| Create NodeGraph More...
static NodeGraph | Instantiate (NodeGraph sourceGraph, NodeBehaviour ownerBehaviour, bool usePool=false)
| Instantiate NodeGraph More...
static GraphType | Instantiate< GraphType > (GraphType sourceGraph, NodeBehaviour ownerBehaviour, bool usePool=false)
| Instantiate NodeGraph More...
static void | Destroy (NodeGraph nodeGraph)
| Destroy NodeGraph More...

## Public Attributes
string | graphName = ""
| The Graph name. More...
DebugInfiniteLoopSettings | debugInfiniteLoopSettings = new DebugInfiniteLoopSettings()
| Debug setting of infinite loop More...

## Protected Member Functions
abstract bool | OnDeleteNode (Node node)
| Delete node. More...
virtual void | OnValidate ()
| See MonoBehaviour.OnValidate. More...
virtual void | OnReset ()
| Reset or create callback. More...

## Properties
NodeGraph | parentGraph`[get]`
| Parent graph More...
NodeGraph | rootGraph`[get]`
| Root graph More...
Object | ownerBehaviourObject`[get, set]`
| Object of NodeBehaviour own this graph More...
NodeBehaviour | ownerBehaviour`[get, set]`
| NodeBehaviour is the owner of this graph More...
ParameterContainerInternal | parameterContainer`[get]`
| The ParameterContainer assigned in this graph More...
string | displayGraphName`[get]`
| Display name of the node graph. More...
DebugInfiniteLoopSettings | currentDebugInfiniteLoopSettings`[get]`
| Current infinite loop debug setting. More...
bool | external`[get]`
| Flag instantiated from external graph More...
int | nodeCount`[get]`
| Get a count of Node. More...
int | calculatorCount`[get]`
| Get a count of CalculatorNode. More...
CalculatorNode[] | calculators`[get]`
| Gets all of Arbor.CalculatorNode. More...
int | commentCount`[get]`
| Get a count of CommentNode. More...
CommentNode[] | comments`[get]`
| Gets all of Arbor.CommentNode. More...
int | groupCount`[get]`
| Get a count of GroupNode. More...
DataBranchRerouteNodeList | dataBranchRerouteNodes`[get]`
| DataBranchRerouteNode list More...
DataBranchRerouteNodeList | calculatorBranchRerouteNodes`[get]`
| DataBranchRerouteNode list More...
int | dataBranchCount`[get]`
| Get a count of DataBranch. More...
int | calculatorBranchCount`[get]`
| Get a count of DataBranch. More...
DataBranch[] | calculatorBranchies`[get]`
| Gets all of Arbor.DataBranch. More...

## Events
NodeGraphCallback | destroyCallback
| Call back when being destroyed More...
NodeGraphCallback | stateChangedCallback
| Call back when the state changes More...

## Detailed Description

Base class of node graph.

## Member Function Documentation

bool CheckLoopCalculatorBranch | ( | int | inputNodeID,
|  | Object | inputObj,
|  | int | outputNodeID,
|  | Object | outputObj
| ) |  |

Check if DataBranch is looping.

Parameters

  inputNodeID | Input slot side node ID
  inputObj | Input slot side Object
  outputNodeID | Output slot side node ID
  outputObj | Output slot side Object

Returns
  Returns true if it is looping.

bool CheckLoopDataBranch | ( | int | inputNodeID,
|  | Object | inputObj,
|  | int | outputNodeID,
|  | Object | outputObj
| ) |  |

Check if DataBranch is looping.

Parameters

  inputNodeID | Input slot side node ID
  inputObj | Input slot side Object
  outputNodeID | Output slot side node ID
  outputObj | Output slot side Object

Returns
  Returns true if it is looping.

DataBranch ConnectCalculatorBranch | ( | int | branchID,
|  | int | inputNodeID,
|  | Object | inputObj,
|  | DataSlot | inputSlot,
|  | int | outputNodeID,
|  | Object | outputObj,
|  | DataSlot | outputSlot
| ) |  |

Connect DataSlot.

Parameters

  branchID | ID of the DataBranch to be created
  inputNodeID | Input node ID.
  inputObj | Input object.
  inputSlot | Input slot.
  outputNodeID | Output node ID.
  outputObj | Output object.
  outputSlot | Output slot.

Returns
  Connected DataBranch

DataBranch ConnectCalculatorBranch | ( | int | inputNodeID,
|  | Object | inputObj,
|  | DataSlot | inputSlot,
|  | int | outputNodeID,
|  | Object | outputObj,
|  | DataSlot | outputSlot
| ) |  |

Connect DataSlot.

Parameters

  inputNodeID | Input node ID.
  inputObj | Input object.
  inputSlot | Input slot.
  outputNodeID | Output node ID.
  outputObj | Output object.
  outputSlot | Output slot.

Returns
  Connected DataBranch

DataBranch ConnectDataBranch | ( | int | branchID,
|  | int | inputNodeID,
|  | Object | inputObj,
|  | DataSlot | inputSlot,
|  | int | outputNodeID,
|  | Object | outputObj,
|  | DataSlot | outputSlot
| ) |  |

Connect DataSlot.

Parameters

  branchID | ID of the DataBranch to be created
  inputNodeID | Input node ID.
  inputObj | Input object.
  inputSlot | Input slot.
  outputNodeID | Output node ID.
  outputObj | Output object.
  outputSlot | Output slot.

Returns
  Connected DataBranch

DataBranch ConnectDataBranch | ( | int | inputNodeID,
|  | Object | inputObj,
|  | DataSlot | inputSlot,
|  | int | outputNodeID,
|  | Object | outputObj,
|  | DataSlot | outputSlot
| ) |  |

Connect DataSlot.

Parameters

  inputNodeID | Input node ID.
  inputObj | Input object.
  inputSlot | Input slot.
  outputNodeID | Output node ID.
  outputObj | Output object.
  outputSlot | Output slot.

Returns
  Connected DataBranch

static NodeGraph Create | ( | GameObject | gameObject,
|  | System.Type | classType
| ) |  |
| static

Create NodeGraph

Parameters

  gameObject | GameObject
  classType | NodeGraph type

Returns
  The created NodeGraph

static GraphType Create< GraphType > | ( | GameObject | gameObject | ) |
| static

Create NodeGraph

Template Parameters

  GraphType | NodeGraph type

Parameters

  gameObject | GameObject

Returns
  The created NodeGraph

Type Constraints

  GraphType | : | NodeGraph |

CalculatorNode CreateCalculator | ( | int | nodeID,
|  | System.Type | calculatorType
| ) |  |

Create calculator.

Parameters

  nodeID | Node ID
  calculatorType | Calculator type

Returns
  The created calculator. If the node ID is not unique, return null without creating it.

CalculatorNode CreateCalculator | ( | System.Type | calculatorType | ) |

Create calculator.

Parameters

  calculatorType | Calculator type

Returns
  The created calculator.

DataBranchRerouteNode CreateCalculatorBranchRerouteNode | ( | Vector2 | position,
|  | System.Type | type,
|  | int | nodeID
| ) |  |

Create DataBranchRerouteNode.

Parameters

  position | Position of the node
  type | Value type
  nodeID | Node ID

Returns
  The created DataBranchRerouteNode. If the node ID is not unique, return null without creating it.

DataBranchRerouteNode CreateCalculatorBranchRerouteNode | ( | Vector2 | position,
|  | System.Type | type
| ) |  |

Create DataBranchRerouteNode.

Returns
  The created DataBranchRerouteNode.

CommentNode CreateComment | ( | int | nodeID | ) |

Create comment.

Parameters

  nodeID | Node ID

Returns
  The created comment. If the node ID is not unique, return null without creating it.

CommentNode CreateComment | ( |  | ) |

Create comment.

Returns
  The created comment.

DataBranchRerouteNode CreateDataBranchRerouteNode | ( | Vector2 | position,
|  | System.Type | type,
|  | int | nodeID
| ) |  |

Create DataBranchRerouteNode.

Parameters

  position | Position of the node
  type | Value type
  nodeID | Node ID

Returns
  The created DataBranchRerouteNode. If the node ID is not unique, return null without creating it.

DataBranchRerouteNode CreateDataBranchRerouteNode | ( | Vector2 | position,
|  | System.Type | type
| ) |  |

Create DataBranchRerouteNode.

Returns
  The created DataBranchRerouteNode.

GroupNode CreateGroup | ( | int | nodeID | ) |

Create group.

Parameters

  nodeID | Node ID

Returns
  The created group. If the node ID is not unique, return null without creating it.

GroupNode CreateGroup | ( |  | ) |

Create group.

Returns
  The created group.

bool DeleteCalculator | ( | CalculatorNode | calculatorNode | ) |

Delete calculator.

Parameters

  calculatorNode | Calculator that you want to delete.

Returns
  true if deleted

void DeleteCalculatorBranch | ( | DataBranch | branch | ) |

Delete DataBranch.

Parameters

  branch | DataBranch that you want to delete.

void DeleteCalculatorBranchRerouteNode | ( | DataBranchRerouteNode | rerouteNode | ) |

Delete DataBranchRerouteNode.

Parameters

  rerouteNode | DataBranchRerouteNode that you want to delete.

void DeleteComment | ( | CommentNode | comment | ) |

Delete comment.

Parameters

  comment | Comment that you want to delete.

void DeleteDataBranch | ( | DataBranch | branch | ) |

Delete DataBranch.

Parameters

  branch | DataBranch that you want to delete.

void DeleteDataBranchRerouteNode | ( | DataBranchRerouteNode | rerouteNode | ) |

Delete DataBranchRerouteNode.

Parameters

  rerouteNode | DataBranchRerouteNode that you want to delete.

void DeleteGroup | ( | GroupNode | group | ) |

Delete group.

Parameters

  group | Group that you want to delete.

bool DeleteNode | ( | Node | node | ) |

Delete node.

Parameters

  node | Node that you want to delete.

Returns
  true if deleted

static void Destroy | ( | NodeGraph | nodeGraph | ) |
| static

Destroy NodeGraph

Parameters

  nodeGraph | NodeGraph

void DestroySubComponents | ( |  | ) |

Method to be used internally.

In particular there is no need to call.

void DisconnectDataBranch | ( | Object | obj | ) |

Method to be used internally.

In particular there is no need to call.

CalculatorNode FindCalculator | ( | Calculator | calculator | ) |

Acquisition of CalculatorNodes Calculator belongs.

Parameters

  calculator | Calculator

Returns
  CalculatorNodes Calculator belongs. Return null if not.

static NodeGraph FindGraph | ( | string | name | ) |
| static

Get the NodeGraph that in the scene with the name.

Parameters

  name | The name of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

static NodeGraph FindGraph | ( | string | name,
|  | System.Type | type
| ) |  |
| static

Get the NodeGraph that in the scene with the name.

Parameters

  name | The name of the search NodeGraph.
  type | The type of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

static NodeGraph FindGraph | ( | GameObject | gameObject,
|  | string | name
| ) |  |
| static

Get NodeGraph in the name that has been attached to the GameObject.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

static NodeGraph FindGraph | ( | GameObject | gameObject,
|  | string | name,
|  | System.Type | type
| ) |  |
| static

Get NodeGraph in the name that has been attached to the GameObject.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.
  type | The type of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

static T FindGraph< T > | ( | string | name | ) |
| static

Get the NodeGraph that in the scene with the name.

Template Parameters

  T | The type of the search NodeGraph.

Parameters

  name | The name of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

Type Constraints

  T | : | NodeGraph |

static T FindGraph< T > | ( | GameObject | gameObject,
|  | string | name
| ) |  |
| static

Get NodeGraph in the name that has been attached to the GameObject.

Template Parameters

  T | The type of the search NodeGraph.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.

Returns
  Found NodeGraph. Returns null if not found.

Type Constraints

  T | : | NodeGraph |

static NodeGraph [] FindGraphs | ( | string | name | ) |
| static

Get the NodeGraph of the same name that is in the scene.

Parameters

  name | The name of the search NodeGraph.

Returns
  Array of found NodeGraph.

static NodeGraph [] FindGraphs | ( | string | name,
|  | System.Type | type
| ) |  |
| static

Get the NodeGraph of the same name that is in the scene.

Parameters

  name | The name of the search NodeGraph.
  type | The type of the search NodeGraph.

Returns
  Array of found NodeGraph.

static NodeGraph [] FindGraphs | ( | GameObject | gameObject,
|  | string | name
| ) |  |
| static

Get the NodeGraph of the same name that is attached to a GameObject.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.

Returns
  Array of found NodeGraph.

static NodeGraph [] FindGraphs | ( | GameObject | gameObject,
|  | string | name,
|  | System.Type | type
| ) |  |
| static

Get the NodeGraph of the same name that is attached to a GameObject.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.
  type | The type of the search NodeGraph.

Returns
  Array of found NodeGraph.

static T [] FindGraphs< T > | ( | string | name | ) |
| static

Get the NodeGraph of the same name that is in the scene.

Template Parameters

  T | The type of the search NodeGraph.

Parameters

  name | The name of the search NodeGraph.

Returns
  Array of found NodeGraph.

Type Constraints

  T | : | NodeGraph |

static T [] FindGraphs< T > | ( | GameObject | gameObject,
|  | string | name
| ) |  |
| static

Get the NodeGraph of the same name that is attached to a GameObject.

Template Parameters

  T | The type of the search NodeGraph.

Parameters

  gameObject | Want to search GameObject.
  name | The name of the search NodeGraph.

Returns
  Array of found NodeGraph.

Type Constraints

  T | : | NodeGraph |

Node FindNodeContainsBehaviour | ( | NodeBehaviour | behaviour | ) |

Acquisition of nodes NodeBehaviour belongs.

Parameters

  behaviour | NodeBehaviour

Returns
  Nodess NodeBehaviour belongs. Return null if not.

DataBranch GetCalculatorBranchFromID | ( | int | branchID | ) |

Gets Arbor.DataBranch from the calculator branch identifier.

Parameters

  branchID | The calculator branch identifier.

Returns
  Found Arbor.DataBranch. Returns null if not found.

DataBranch GetCalculatorBranchFromIndex | ( | int | index | ) |

Get DataBranch from index.

Parameters

  index | Index

Returns
  DataBranch

int GetCalculatorBranchIndex | ( | DataBranch | branch | ) |

Get DataBranch index.

Parameters

  branch | DataBranch

Returns
  Index. If not, it returns -1.

CalculatorNode GetCalculatorFromID | ( | int | calculatorID | ) |

Gets Arbor.CalculatorNode from the calculator identifier.

Parameters

  calculatorID | The calculator identifier.

Returns
  Found Arbor.CalculatorNode. Returns null if not found.

CalculatorNode GetCalculatorFromIndex | ( | int | index | ) |

Get CalculatorNode from index.

Parameters

  index | Index

Returns
  CalculatorNode

int GetCalculatorIndex | ( | CalculatorNode | calculator | ) |

Get CalculatorNode index.

Parameters

  calculator | CalculatorNode

Returns
  Index. If not, it returns -1.

CommentNode GetCommentFromID | ( | int | commentID | ) |

Gets Arbor.CommentNode from the comment identifier.

Parameters

  commentID | The comment identifier.

Returns
  Found Arbor.CommentNode. Returns null if not found.

CommentNode GetCommentFromIndex | ( | int | index | ) |

Get CommentNode from index.

Parameters

  index | Index

Returns
  CommentNode

int GetCommentIndex | ( | CommentNode | comment | ) |

Get CommentNode index.

Parameters

  comment | CommentNode

Returns
  Index. If not, it returns -1.

DataBranch GetDataBranchFromID | ( | int | branchID | ) |

Gets Arbor.DataBranch from the calculator branch identifier.

Parameters

  branchID | The calculator branch identifier.

Returns
  Found Arbor.DataBranch. Returns null if not found.

DataBranch GetDataBranchFromIndex | ( | int | index | ) |

Get DataBranch from index.

Parameters

  index | Index

Returns
  DataBranch

int GetDataBranchIndex | ( | DataBranch | branch | ) |

Get DataBranch index.

Parameters

  branch | DataBranch

Returns
  Index. If not, it returns -1.

GroupNode GetGroupFromID | ( | int | groupID | ) |

Gets Arbor.GroupNode from the group identifier.

Parameters

  groupID | The group identifier.

Returns
  Found Arbor.GroupNode. Returns null if not found.

GroupNode GetGroupFromIndex | ( | int | index | ) |

Get GroupNode from index.

Parameters

  index | Index

Returns
  GroupNode

Node GetNodeFromID | ( | int | nodeID | ) |

Gets Arbor.Node from the node identifier.

Parameters

  nodeID | The node identifier.

Returns
  Found Arbor.Node. Returns null if not found.

Node GetNodeFromIndex | ( | int | index | ) |

Get Node from index.

Parameters

  index | Index

Returns
  Node

static NodeGraph Instantiate | ( | NodeGraph | sourceGraph,
|  | NodeBehaviour | ownerBehaviour,
|  | bool | usePool = `false`
| ) |  |
| static

Instantiate NodeGraph

Parameters

  sourceGraph | Source graph
  ownerBehaviour | NodeBehaviour with chart ownership
  usePool | Flag to instantiate using ObjectPool.

Returns
  Instantiated graph

static GraphType Instantiate< GraphType > | ( | GraphType | sourceGraph,
|  | NodeBehaviour | ownerBehaviour,
|  | bool | usePool = `false`
| ) |  |
| static

Instantiate NodeGraph

Template Parameters

  GraphType | Graph type

Parameters

  sourceGraph | Source graph
  ownerBehaviour | NodeBehaviour with chart ownership
  usePool | Flag to instantiate using ObjectPool.

Returns
  Instantiated graph

Type Constraints

  GraphType | : | NodeGraph |

delegate void NodeGraphCallback | ( | NodeGraph | nodeGraph | ) |

Delegate for NodeGraph callback

Parameters

  nodeGraph | Event occurred NodeGraph

abstract bool OnDeleteNode | ( | Node | node | ) |
| protected pure virtual

Delete node.

Parameters

  node | The node to delete

Returns
  Returns true if deleted, false otherwise.

Implemented in ArborFSMInternal, and BehaviourTreeInternal.

void OnPoolResume | ( |  | ) |

Called when resuming.

Implements IPoolCallbackReceiver.

void OnPoolSleep | ( |  | ) |

Called when stored in the pool.

Implements IPoolCallbackReceiver.

virtual void OnReset | ( |  | ) |
| protected virtual

Reset or create callback.

Reimplemented in ArborFSMInternal, and BehaviourTreeInternal.

virtual void OnValidate | ( |  | ) |
| protected virtual

See MonoBehaviour.OnValidate.

Reimplemented in ArborFSMInternal.

virtual void OnValidateNodes | ( |  | ) |
| virtual

Called when the node is changed.

Reimplemented in BehaviourTreeInternal.

override string ToString | ( |  | ) |

Convert graph to string (for debugging).

Returns
  Converted string

## Member Data Documentation

DebugInfiniteLoopSettings debugInfiniteLoopSettings = new DebugInfiniteLoopSettings()

Debug setting of infinite loop

string graphName = ""

The Graph name.

It is used for identification and retrieval when there is more than one Graph in one GameObject.

## Property Documentation

int calculatorBranchCount
| get

Get a count of DataBranch.

DataBranch [] calculatorBranchies
| get

Gets all of Arbor.DataBranch.

DataBranchRerouteNodeList calculatorBranchRerouteNodes
| get

DataBranchRerouteNode list

int calculatorCount
| get

Get a count of CalculatorNode.

CalculatorNode [] calculators
| get

Gets all of Arbor.CalculatorNode.

int commentCount
| get

Get a count of CommentNode.

CommentNode [] comments
| get

Gets all of Arbor.CommentNode.

DebugInfiniteLoopSettings currentDebugInfiniteLoopSettings
| get

Current infinite loop debug setting.

If it is a child graph, return the infinite loop debug setting of the route graph.

int dataBranchCount
| get

Get a count of DataBranch.

DataBranchRerouteNodeList dataBranchRerouteNodes
| get

DataBranchRerouteNode list

string displayGraphName
| get

Display name of the node graph.

If graphName is empty or null, it returns "(No Name)".

bool external
| get

Flag instantiated from external graph

int groupCount
| get

Get a count of GroupNode.

int nodeCount
| get

Get a count of Node.

NodeBehaviour ownerBehaviour
| get set

NodeBehaviour is the owner of this graph

Object ownerBehaviourObject
| get set

Object of NodeBehaviour own this graph

ParameterContainerInternal parameterContainer
| get

The ParameterContainer assigned in this graph

NodeGraph parentGraph
| get

Parent graph

NodeGraph rootGraph
| get

Root graph

## Event Documentation

NodeGraphCallback destroyCallback

Call back when being destroyed

NodeGraphCallback stateChangedCallback

Call back when the state changes