Arbor 3: FSM & BT Graph Editor
3.7.8
|
Base class of node graph. More...
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... | |
virtual void | OnDestroy () |
This function is called when MonoBehaivour will be destroyed. More... | |
void | DestroySubComponents (bool callback=true) |
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... | |
abstract void | OnRegisterNodes () |
Register nodes More... | |
virtual void | OnReset () |
Reset or create callback. More... | |
Events | |
System.Action | onAfterDeserialize |
Callback after deserialization More... | |
NodeGraphCallback | destroyCallback |
Call back when being destroyed More... | |
NodeGraphCallback | stateChangedCallback |
Call back when the state changes More... | |
Base class of node graph.
bool CheckLoopCalculatorBranch | ( | int | inputNodeID, |
Object | inputObj, | ||
int | outputNodeID, | ||
Object | outputObj | ||
) |
Check if DataBranch is looping.
inputNodeID | Input slot side node ID |
inputObj | Input slot side Object |
outputNodeID | Output slot side node ID |
outputObj | Output slot side Object |
bool CheckLoopDataBranch | ( | int | inputNodeID, |
Object | inputObj, | ||
int | outputNodeID, | ||
Object | outputObj | ||
) |
Check if DataBranch is looping.
inputNodeID | Input slot side node ID |
inputObj | Input slot side Object |
outputNodeID | Output slot side node ID |
outputObj | Output slot side Object |
DataBranch ConnectCalculatorBranch | ( | int | branchID, |
int | inputNodeID, | ||
Object | inputObj, | ||
DataSlot | inputSlot, | ||
int | outputNodeID, | ||
Object | outputObj, | ||
DataSlot | outputSlot | ||
) |
Connect DataSlot.
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. |
DataBranch ConnectCalculatorBranch | ( | int | inputNodeID, |
Object | inputObj, | ||
DataSlot | inputSlot, | ||
int | outputNodeID, | ||
Object | outputObj, | ||
DataSlot | outputSlot | ||
) |
Connect DataSlot.
inputNodeID | Input node ID. |
inputObj | Input object. |
inputSlot | Input slot. |
outputNodeID | Output node ID. |
outputObj | Output object. |
outputSlot | Output slot. |
DataBranch ConnectDataBranch | ( | int | branchID, |
int | inputNodeID, | ||
Object | inputObj, | ||
DataSlot | inputSlot, | ||
int | outputNodeID, | ||
Object | outputObj, | ||
DataSlot | outputSlot | ||
) |
Connect DataSlot.
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. |
DataBranch ConnectDataBranch | ( | int | inputNodeID, |
Object | inputObj, | ||
DataSlot | inputSlot, | ||
int | outputNodeID, | ||
Object | outputObj, | ||
DataSlot | outputSlot | ||
) |
Connect DataSlot.
inputNodeID | Input node ID. |
inputObj | Input object. |
inputSlot | Input slot. |
outputNodeID | Output node ID. |
outputObj | Output object. |
outputSlot | Output slot. |
|
static |
|
static |
CalculatorNode CreateCalculator | ( | int | nodeID, |
System.Type | calculatorType | ||
) |
Create calculator.
nodeID | Node ID |
calculatorType | Calculator type |
CalculatorNode CreateCalculator | ( | System.Type | calculatorType | ) |
DataBranchRerouteNode CreateCalculatorBranchRerouteNode | ( | Vector2 | position, |
System.Type | type | ||
) |
Create DataBranchRerouteNode.
DataBranchRerouteNode CreateCalculatorBranchRerouteNode | ( | Vector2 | position, |
System.Type | type, | ||
int | nodeID | ||
) |
Create DataBranchRerouteNode.
position | Position of the node |
type | Value type |
nodeID | Node ID |
CommentNode CreateComment | ( | ) |
Create comment.
CommentNode CreateComment | ( | int | nodeID | ) |
Create comment.
nodeID | Node ID |
DataBranchRerouteNode CreateDataBranchRerouteNode | ( | Vector2 | position, |
System.Type | type | ||
) |
Create DataBranchRerouteNode.
DataBranchRerouteNode CreateDataBranchRerouteNode | ( | Vector2 | position, |
System.Type | type, | ||
int | nodeID | ||
) |
Create DataBranchRerouteNode.
position | Position of the node |
type | Value type |
nodeID | Node ID |
GroupNode CreateGroup | ( | ) |
Create group.
GroupNode CreateGroup | ( | int | nodeID | ) |
Create group.
nodeID | Node ID |
bool DeleteCalculator | ( | CalculatorNode | calculatorNode | ) |
Delete calculator.
calculatorNode | Calculator that you want to delete. |
void DeleteCalculatorBranch | ( | DataBranch | branch | ) |
Delete DataBranch.
branch | DataBranch that you want to delete. |
void DeleteCalculatorBranchRerouteNode | ( | DataBranchRerouteNode | rerouteNode | ) |
Delete DataBranchRerouteNode.
rerouteNode | DataBranchRerouteNode that you want to delete. |
void DeleteComment | ( | CommentNode | comment | ) |
Delete comment.
comment | Comment that you want to delete. |
void DeleteDataBranch | ( | DataBranch | branch | ) |
Delete DataBranch.
branch | DataBranch that you want to delete. |
void DeleteDataBranchRerouteNode | ( | DataBranchRerouteNode | rerouteNode | ) |
Delete DataBranchRerouteNode.
rerouteNode | DataBranchRerouteNode that you want to delete. |
void DeleteGroup | ( | GroupNode | group | ) |
Delete group.
group | Group that you want to delete. |
bool DeleteNode | ( | Node | node | ) |
void DestroySubComponents | ( | bool | callback = true | ) |
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.
calculator | Calculator |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Node FindNodeContainsBehaviour | ( | NodeBehaviour | behaviour | ) |
Acquisition of nodes NodeBehaviour belongs.
behaviour | NodeBehaviour |
DataBranch GetCalculatorBranchFromID | ( | int | branchID | ) |
Gets Arbor.DataBranch from the calculator branch identifier.
branchID | The calculator branch identifier. |
DataBranch GetCalculatorBranchFromIndex | ( | int | index | ) |
int GetCalculatorBranchIndex | ( | DataBranch | branch | ) |
CalculatorNode GetCalculatorFromID | ( | int | calculatorID | ) |
Gets Arbor.CalculatorNode from the calculator identifier.
calculatorID | The calculator identifier. |
CalculatorNode GetCalculatorFromIndex | ( | int | index | ) |
int GetCalculatorIndex | ( | CalculatorNode | calculator | ) |
CommentNode GetCommentFromID | ( | int | commentID | ) |
Gets Arbor.CommentNode from the comment identifier.
commentID | The comment identifier. |
CommentNode GetCommentFromIndex | ( | int | index | ) |
int GetCommentIndex | ( | CommentNode | comment | ) |
DataBranch GetDataBranchFromID | ( | int | branchID | ) |
Gets Arbor.DataBranch from the calculator branch identifier.
branchID | The calculator branch identifier. |
DataBranch GetDataBranchFromIndex | ( | int | index | ) |
int GetDataBranchIndex | ( | DataBranch | branch | ) |
GroupNode GetGroupFromID | ( | int | groupID | ) |
Gets Arbor.GroupNode from the group identifier.
groupID | The group identifier. |
GroupNode GetGroupFromIndex | ( | int | index | ) |
Node GetNodeFromID | ( | int | nodeID | ) |
Gets Arbor.Node from the node identifier.
nodeID | The node identifier. |
|
static |
Instantiate NodeGraph
sourceGraph | Source graph |
ownerBehaviour | NodeBehaviour with chart ownership |
usePool | Flag to instantiate using ObjectPool. |
|
static |
Instantiate NodeGraph
GraphType | Graph type |
sourceGraph | Source graph |
ownerBehaviour | NodeBehaviour with chart ownership |
usePool | Flag to instantiate using ObjectPool. |
GraphType | : | NodeGraph |
delegate void NodeGraphCallback | ( | NodeGraph | nodeGraph | ) |
|
protectedpure virtual |
Delete node.
node | The node to delete |
Implemented in ArborFSMInternal, and BehaviourTreeInternal.
|
virtual |
This function is called when MonoBehaivour will be destroyed.
void OnPoolResume | ( | ) |
Called when resuming.
Implements IPoolCallbackReceiver.
void OnPoolSleep | ( | ) |
Called when stored in the pool.
Implements IPoolCallbackReceiver.
|
protectedpure virtual |
Register nodes
Implemented in ArborFSMInternal, and BehaviourTreeInternal.
|
protectedvirtual |
Reset or create callback.
Reimplemented in ArborFSMInternal, and BehaviourTreeInternal.
|
protectedvirtual |
See MonoBehaviour.OnValidate.
Reimplemented in ArborFSMInternal.
|
virtual |
Called when the node is changed.
Reimplemented in BehaviourTreeInternal.
override string ToString | ( | ) |
Convert graph to string (for debugging).
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.
|
get |
Get a count of DataBranch.
|
get |
Gets all of Arbor.DataBranch.
|
get |
|
get |
Get a count of CalculatorNode.
|
get |
Gets all of Arbor.CalculatorNode.
|
get |
Get a count of CommentNode.
|
get |
Gets all of Arbor.CommentNode.
|
get |
Current infinite loop debug setting.
If it is a child graph, return the infinite loop debug setting of the route graph.
|
get |
Get a count of DataBranch.
|
get |
|
get |
Display name of the node graph.
If graphName is empty or null, it returns "(No Name)".
|
get |
Flag instantiated from external graph
|
get |
Get a count of GroupNode.
|
get |
Returns whether or not deserialization has been done.
|
get |
Get a count of Node.
|
getset |
NodeBehaviour is the owner of this graph
|
getset |
Object of NodeBehaviour own this graph
|
get |
The ParameterContainer assigned in this graph
|
get |
Parent graph
|
get |
Root graph
NodeGraphCallback destroyCallback |
Call back when being destroyed
System.Action onAfterDeserialize |
Callback after deserialization
NodeGraphCallback stateChangedCallback |
Call back when the state changes