Arbor 3: FSM & BT Graph Editor  3.1.2
BehaviourTree Class Reference

ビヘイビアツリーのコア部分。
GameObjectにアタッチして使用する。 More...

Inheritance diagram for BehaviourTree:
BehaviourTreeInternal NodeGraph

Additional Inherited Members

- Public Member Functions inherited from BehaviourTreeInternal
void Play ()
 ビヘイビアツリーの再生を開始。 More...
 
void Stop ()
 ビヘイビアツリーの再生を停止。 More...
 
void Pause ()
 ビヘイビアツリーの再生を一時停止。 More...
 
void Resume ()
 ビヘイビアツリーの再生を再開。 More...
 
CompositeNode CreateComposite (Vector2 position, int nodeID, System.Type classType)
 CompositeNodeを生成。 More...
 
CompositeNode CreateComposite (Vector2 position, System.Type classType)
 CompositeNodeを生成。 More...
 
ActionNode CreateAction (Vector2 position, int nodeID, System.Type classType)
 ActionNodeを生成。 More...
 
ActionNode CreateAction (Vector2 position, System.Type classType)
 ActionNodeを生成。 More...
 
void CalculatePriority ()
 ノードの優先度を計算する。 More...
 
override void OnValidateNodes ()
 ノードが変更された際に呼ばれる。 More...
 
bool CheckLoop (TreeNodeBase parentNode, TreeNodeBase childNode)
 ノードの接続がループしているかチェックする。 More...
 
NodeBranch ConnectBranch (int branchID, TreeNodeBase parentNode, TreeNodeBase childNode)
 NodeBranchの接続 More...
 
NodeBranch ConnectBranch (TreeNodeBase parentNode, TreeNodeBase childNode)
 NodeBranchの接続 More...
 
void DisconnectBranch (NodeBranch branch)
 NodeBranchの切断 More...
 
void Execute ()
 手動で実行する。 UpdateSettings.typeがManualの場合に任意のタイミングでこのメソッドを呼んでください。 More...
 
- Public Member Functions inherited from NodeGraph
Node GetNodeFromIndex (int index)
 Nodeをインデックスから取得 More...
 
Node GetNodeFromID (int nodeID)
 ノードIDを指定してArbor.Nodeを取得する。 More...
 
CalculatorNode GetCalculatorFromIndex (int index)
 CalculatorNodeをインデックスから取得 More...
 
int GetCalculatorIndex (CalculatorNode calculator)
 CalculatorNodeのインデックスを取得 More...
 
CalculatorNode GetCalculatorFromID (int calculatorID)
 演算ノードIDを指定してArbor.CalculatorNodeを取得する。 More...
 
CalculatorNode CreateCalculator (int nodeID, System.Type calculatorType)
 演算ノードを生成。 More...
 
CalculatorNode CreateCalculator (System.Type calculatorType)
 演算ノードを生成。 More...
 
CalculatorNode FindCalculator (Calculator calculator)
 Calculatorが属しているCalculatorNodeの取得。 More...
 
bool DeleteCalculator (CalculatorNode calculatorNode)
 演算ノードの削除。 More...
 
CommentNode GetCommentFromIndex (int index)
 CommentNodeをインデックスから取得 More...
 
int GetCommentIndex (CommentNode comment)
 CommentNodeのインデックスを取得 More...
 
CommentNode GetCommentFromID (int commentID)
 コメントIDを指定してArbor.CommentNodeを取得する。 More...
 
CommentNode CreateComment (int nodeID)
 コメントを生成。 More...
 
CommentNode CreateComment ()
 コメントを生成。 More...
 
void DeleteComment (CommentNode comment)
 コメントの削除。 More...
 
GroupNode GetGroupFromIndex (int index)
 GroupNodeをインデックスから取得 More...
 
GroupNode CreateGroup (int nodeID)
 グループを生成。 More...
 
GroupNode CreateGroup ()
 グループを生成。 More...
 
void DeleteGroup (GroupNode group)
 グループの削除。 More...
 
GroupNode GetGroupFromID (int groupID)
 グループIDを指定してArbor.GroupNodeを取得する。 More...
 
CalculatorBranchRerouteNode CreateCalculatorBranchRerouteNode (Vector2 position, System.Type type, int nodeID)
 CalculatorBranchRerouteNodeを生成。 More...
 
CalculatorBranchRerouteNode CreateCalculatorBranchRerouteNode (Vector2 position, System.Type type)
 CalculatorBranchRerouteNodeを生成。 More...
 
void DeleteCalculatorBranchRerouteNode (CalculatorBranchRerouteNode rerouteNode)
 CalculatorBranchRerouteNodeの削除。 More...
 
bool DeleteNode (Node node)
 ノードの削除。 More...
 
Node FindNodeContainsBehaviour (NodeBehaviour behaviour)
 NodeBehaviourが属しているノードの取得。 More...
 
CalculatorBranch GetCalculatorBranchFromIndex (int index)
 CalculatorBranchをインデックスから取得 More...
 
int GetCalculatorBranchIndex (CalculatorBranch branch)
 CalculatorBranchのインデックスを取得 More...
 
CalculatorBranch GetCalculatorBranchFromID (int branchID)
 演算ブランチIDを指定してArbor.CalculatorBranchを取得する。 More...
 
CalculatorBranch ConnectCalculatorBranch (int branchID, int inputNodeID, Object inputObj, CalculatorSlot inputSlot, int outputNodeID, Object outputObj, CalculatorSlot outputSlot)
 CalculatorSlotの接続 More...
 
CalculatorBranch ConnectCalculatorBranch (int inputNodeID, Object inputObj, CalculatorSlot inputSlot, int outputNodeID, Object outputObj, CalculatorSlot outputSlot)
 CalculatorSlotの接続 More...
 
void DisconnectCalculatorBranch (Object obj)
 内部的に使用するメソッド。特に呼び出す必要はありません。 More...
 
void DeleteCalculatorBranch (CalculatorBranch branch)
 演算ブランチの削除。 More...
 
bool CheckLoopCalculatorBranch (int inputNodeID, Object inputObj, int outputNodeID, Object outputObj)
 CalculatorBranchがループしているかをチェックする。 More...
 
delegate void NodeGraphCallback (NodeGraph nodeGraph)
 NodeGraphのコールバック用デリゲート More...
 
void DestroySubComponents ()
 内部的に使用するメソッド。特に呼び出す必要はありません。 More...
 
override string ToString ()
 グラフを文字列に変換(デバッグ用)。 More...
 
- Static Public Member Functions inherited from NodeGraph
static NodeGraph FindGraph (string name)
 シーン内にあるNodeGraphを名前で取得する。 More...
 
static NodeGraph FindGraph (string name, System.Type type)
 シーン内にあるNodeGraphを名前で取得する。 More...
 
static T FindGraph< T > (string name)
 シーン内にあるNodeGraphを名前で取得する。 More...
 
static NodeGraph[] FindGraphs (string name)
 シーン内にある同一名のNodeGraphを取得する。 More...
 
static NodeGraph[] FindGraphs (string name, System.Type type)
 シーン内にある同一名のNodeGraphを取得する。 More...
 
static T[] FindGraphs< T > (string name)
 シーン内にある同一名のNodeGraphを取得する。 More...
 
static NodeGraph FindGraph (GameObject gameObject, string name)
 GameObjectにアタッチされているNodeGraphを名前で取得する。 More...
 
static NodeGraph FindGraph (GameObject gameObject, string name, System.Type type)
 GameObjectにアタッチされているNodeGraphを名前で取得する。 More...
 
static T FindGraph< T > (GameObject gameObject, string name)
 GameObjectにアタッチされているNodeGraphを名前で取得する。 More...
 
static NodeGraph[] FindGraphs (GameObject gameObject, string name)
 GameObjectにアタッチされている同一名のNodeGraphを取得する。 More...
 
static NodeGraph[] FindGraphs (GameObject gameObject, string name, System.Type type)
 GameObjectにアタッチされている同一名のNodeGraphを取得する。 More...
 
static T[] FindGraphs< T > (GameObject gameObject, string name)
 GameObjectにアタッチされている同一名のNodeGraphを取得する。 More...
 
static NodeGraph Create (GameObject gameObject, System.Type classType)
 NodeGraphの作成 More...
 
static GraphType Create< GraphType > (GameObject gameObject)
 NodeGraphの作成 More...
 
static NodeGraph Instantiate (NodeGraph sourceGraph, NodeBehaviour ownerBehaviour)
 NodeGraphを生成 More...
 
static GraphType Instantiate< GraphType > (GraphType sourceGraph, NodeBehaviour ownerBehaviour)
 NodeGraphを生成 More...
 
static void Destroy (NodeGraph nodeGraph)
 NodeGraphの破棄 More...
 
- Public Attributes inherited from BehaviourTreeInternal
bool playOnStart = true
 開始時に再生するフラグ。 More...
 
bool restartOnFinish = true
 終了時に再開するフラグ。 More...
 
UpdateSettings updateSettings = new UpdateSettings()
 更新に関する設定。 More...
 
ExecutionSettings executionSettings = new ExecutionSettings()
 実行に関する設定。 More...
 
- Public Attributes inherited from NodeGraph
string graphName
 グラフの名前。
一つのGameObjectに複数のグラフがある場合の識別や検索に使用する。 More...
 
- Protected Member Functions inherited from BehaviourTreeInternal
sealed override void OnReset ()
 Resetもしくは生成時のコールバック。 More...
 
override bool OnDeleteNode (Node node)
 ノードの削除。 More...
 
- Protected Member Functions inherited from NodeGraph
virtual void OnValidate ()
 MonoBehaviour.OnValidate を参照してください More...
 
- Properties inherited from BehaviourTreeInternal
PlayState playState [get]
 再生状態 More...
 
NodeBranchies nodeBranchies [get]
 NodeBranchのリストを取得 More...
 
CompositeNodeList compositeNodes [get]
 CompositeNodeのリストを取得 More...
 
ActionNodeList actionNodes [get]
 ActionNodeのリストを取得 More...
 
RootNode rootNode [get]
 RootNodeを取得 More...
 
- Properties inherited from NodeGraph
string displayGraphName [get]
 ノードグラフの表示名。graphNameが空かnullの場合は"(No Name)"を返す。 More...
 
NodeGraph parentGraph [get]
 親グラフ More...
 
NodeGraph rootGraph [get]
 ルートグラフ More...
 
Object ownerBehaviourObject [get, set]
 このグラフの所有者であるNodeBehaviourのObject More...
 
NodeBehaviour ownerBehaviour [get, set]
 このグラフの所有者であるNodeBehaviour More...
 
bool external [get]
 外部グラフから生成されたフラグ More...
 
int nodeCount [get]
 Nodeの数を取得。 More...
 
int calculatorCount [get]
 CalculatorNodeの数を取得。 More...
 
CalculatorNode[] calculators [get]
 全てのArbor.CalculatorNodeを取得する。 More...
 
int commentCount [get]
 CommentNodeの数を取得。 More...
 
CommentNode[] comments [get]
 全てのArbor.CommentNodeを取得する。 More...
 
int groupCount [get]
 GroupNodeの数を取得。 More...
 
CalculatorBranchRerouteNodeList calculatorBranchRerouteNodes [get]
 CalculatorBranchRerouteNodeリスト More...
 
int calculatorBranchCount [get]
 CalculatorBranchの数を取得。 More...
 
CalculatorBranch[] calculatorBranchies [get]
 全てのArbor.CalculatorBranchを取得する。 More...
 
- Events inherited from NodeGraph
NodeGraphCallback destroyCallback
 破棄される際のコールバック More...
 
NodeGraphCallback stateChangedCallback
 状態が変わった際のコールバック More...
 

Detailed Description

ビヘイビアツリーのコア部分。
GameObjectにアタッチして使用する。

Open EditorボタンをクリックとArbor Editor Windowが開く。