Time in state

Andy Buchanan 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 6

Hello! Is there a method to pick up the time we've been in the current state, or will I have to track it manually? 

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

You mean something like this?

Yes thanks, I have that way at the moment, just wondered if there was a shortcut, PM has a predefined action for that.


Yeh, PM has lots of predefined stuff like that. That would be great in Bolt like the ECO system. In Bolt you could build it as a super state macro and reuse it.

Pending Review

You can also use the On Timer Elapsed event if you only need a trigger when a specific amount of seconds is passed. This event will start counting when the state is entered.

Thanks that will be useful in other occasions, in this specific case I was requiring the actual value for a calculation.