遷移元のステートを知る方法はありますか?

Here is the forum to do the questions about how to use to Arbor developer.
Attention point:
  • We can not answer your questions about your project specific issues.
  • We can not answer your questions on Unity's specification issues.
  • Please check Arbor Documentation and ask a question if you still don't know how to use it. If the desired function is not described in the document, it is highly possible that the function does not exist from the beginning, so go to the request forum.

ここは、Arbor開発者へ使い方に関する質問を行うフォーラムです。
注意点:
  • ユーザー様のプロジェクトの仕様上の問題や設計に対する質問には答えられません。
  • Unityの仕様上の問題に対する質問には答えられません。
  • Arbor Documentationを確認の上、それでも使い方がわからない場合にご質問ください。欲しい機能の記載がドキュメントにない場合は機能が元から存在しない可能性が高いので要望フォーラムへ。

Forum rules
Here is the forum to do the questions about how to use to Arbor developer.
Attention point:
  • We can not answer your questions about your project specific issues.
  • We can not answer your questions on Unity's specification issues.
  • Please check Arbor Documentation and ask a question if you still don't know how to use it. If the desired function is not described in the document, it is highly possible that the function does not exist from the beginning, so go to the request forum.

ここは、Arbor開発者へ使い方に関する質問を行うフォーラムです。
注意点:
  • ユーザー様のプロジェクトの仕様上の問題や設計に対する質問には答えられません。
  • Unityの仕様上の問題に対する質問には答えられません。
  • Arbor Documentationを確認の上、それでも使い方がわからない場合にご質問ください。欲しい機能の記載がドキュメントにない場合は機能が元から存在しない可能性が高いので要望フォーラムへ。
InuDog

遷移元のステートを知る方法はありますか?

Post by InuDog »

Arbor を購入し、便利に使わせてもらっています。

ところで、あるステートにアタッチした StateBehaviour の中で、
そのステートに遷移してくる前のステートが何だったか、を知りたいことがあります。
そのようなことが簡単に出来るメソッド、パラメータ等はありますでしょうか?
User avatar
caitsithware
管理人
Posts: 493
Joined: 2015/08/17 12:41

Re: 遷移元のステートを知る方法はありますか?

Post by caitsithware »

現在遷移元のステートは取得できません。

どういった用途かにもよりますが、遷移元のステートによって挙動が変わるなどの動作はエディタ上での視覚的なデバッグのしにくさなどが問題となるため、原則的にはあまりお勧めできない手法となっています。

改めて遷移元ステートごとに挙動を変えたステートを個別に作成するか、データスロットでの値の受け渡しによって挙動を変えるなどを行っていただければと思います。

スクリプトでデータスロットを使う方法については 演算ノードからの入力 以降を参照してください。

もしこの方法に問題があるようでしたらもう少し詳細を教えていただけると助かります。
InuDog

Re: 遷移元のステートを知る方法はありますか?

Post by InuDog »

ご返信ありがとうございます。

なるほど、おそらくそういった設計思想なのだろうという気もしていましたので、納得です。
おっしゃる方法(遷移元ステートごとに挙動を変えたステートを個別に作成する)でも
やりたいことは実現できると思いますので、そちらを検討したいと思います。


Last bumped by Anonymous on 2018/02/23 06:00.
Post Reply