0
Answered

How to get current state of other state machine?

Doohyun Jung 1 year ago updated 1 year ago 2

How to get current state of other state machine? I searched forum and discord but can't find answer. Is there any unit about that? or have to make custom method?

Bolt Version:
1.4.3f2
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

Hi Doohyun,

Unfortunately, there's no way to do that, because there's no way to uniquely and reliably identify states (they can be nested, have multiple instances, etc.).

The easiest solution is to use a variable in the scope you choose to track your state. You can set that variable in On Enter State.

Thanks! I think that's a great solution.