Transition with parameters

This is a forum for requesting Arbor developers.
The items required for the request are as follows.
  • What are you trying to do with Arbor?
  • Specifically, where are you inconvenient and in trouble?
  • What should I do to improve?
Attention point:
  • We can not answer requests that do not know the detailed situation.
  • We can not answer your request for specific problems in the specification of your project.
  • We can not answer your request on Unity's specification issues.
  • We do not guarantee the implementation of your request.

ここは、Arbor開発者への要望を行うためのフォーラムです。
要望に必要な項目は以下の通りです。
  • Arborを使って何をしようとしているか。
  • 具体的にどこが不便で困っているか。
  • 改善するにはどうすればよいか。
注意点:
  • 詳しい状況がわからない要望については答えられません。
  • ユーザー様のプロジェクトの仕様上の固有の問題に対する要望については答えられません。
  • Unityの仕様上の問題に対する要望には答えられません。
  • 要望の実装を必ずお約束するものではございません。

Forum rules
The items required for the request are as follows.
  • What are you trying to do with Arbor?
  • Specifically, where are you inconvenient and in trouble?
  • What should I do to improve?
Attention point:
  • We can not answer requests that do not know the detailed situation.
  • We can not answer your request for specific problems in the specification of your project.
  • We can not answer your request on Unity's specification issues.
  • We do not guarantee the implementation of your request.

要望に必要な項目は以下の通りです。
  • Arborを使って何をしようとしているか。
  • 具体的にどこが不便で困っているか。
  • 改善するにはどうすればよいか。
注意点:
  • 詳しい状況がわからない要望については答えられません。
  • ユーザー様のプロジェクトの仕様上の固有の問題に対する要望については答えられません。
  • Unityの仕様上の問題に対する要望には答えられません。
  • 要望の実装を必ずお約束するものではございません。
ZeroX
Posts: 7
Joined: 2021/05/02 23:55

Transition with parameters

Post by ZeroX »

Hello arbor team,

I am wondering if there are any transition with parameters?
Something like this:

Code: Select all

1, Transition (Dictionary <object, object> paremeters)
or

Code: Select all

2, Transition (params object [] parameters)
But personally I prefer way # 1 since being able to access the exact parameter by id and check for its existence.

And on OnBegin will be OnBegin (Dictionary <object, object> paremeters).
Either a way to access these parameters, such as the GetTransitionParameters () method or the TransitionParameters property.

And these parameters will be deleted when leaving the state.

I know in arbor3 there is ParameterContainer. But it would be troublesome to just add everything to it. It would be simpler and cleaner if it was possible to pass separate parameters for each state separately.

It would be great if we could Transition to Attack, Move, Jump, or EndGame with some special contextual config such as attackType, attackDirection, moveSpeed ​​(if empty, use default moveSpeed), jumpDirection, endGameResult.
User avatar
caitsithware
管理人
Posts: 495
Joined: 2015/08/17 12:41

Re: Transition with parameters

Post by caitsithware »

Hello.
Thank you for your request.

Currently, Arbor3 can use value I/O via data slots.
Please refer to the manual for details. I have the following concerns about the method you requested.
  • The data flow function already exists.
  • The graph editor cannot see what parameters are being passed from which state.
  • It is necessary to write both Transition and receiving scripts on the user side, so it is only necessary to prepare user scripts for passing.
In light of the above, we will consider whether or not to introduce this feature.
ZeroX
Posts: 7
Joined: 2021/05/02 23:55

Re: Transition with parameters

Post by ZeroX »

Thank for the reply,
I hope this can be added in the future.
In my opinion this will help developers who tend to code StateBehavior and use arbor as a tool rather than using visual scripting instead of coding.
Post Reply