0
Completed
Matt 4 months ago • updated 4 months ago 5

When Rewinding, it would be really useful to see how much Rewind Time there is remaining.

Particularly useful when rewinding in quick succession.


Thank you,


Matt

Chronos Version:
Unity Version:

Answer

Answer
Completed

I actually just realized I had coded this, but forgot to document it.

You can use:

GetComponent<Timeline>().transform.availableRewindDuration

I'll add the online documentation right away.

GOOD, I'M SATISFIED

Brilliant thank you

Satisfaction mark by Matt 4 months ago
Answer
Completed

I actually just realized I had coded this, but forgot to document it.

You can use:

GetComponent<Timeline>().transform.availableRewindDuration

I'll add the online documentation right away.

I'll also add this shortcut for the next version:

GetComponent<Timeline>().availableRewindDuration

Hello again. I am having some trouble here, I am getting a null for GetComponentInParent<Timeline>().transform

I get the correct reference with just GetComponentInParent<Timeline>(), so I'm not entirely sure what I am doing wrong. Any advice is appreciated, thank you :)

Oops, my bad. Your object probably has a rigidbody. Use GetComponent<Timeline>().recorder or GetComponent<Timeline>().rigidbody instead.

Thank you, using rigidbody resolved the issue. I now have Rewind working precisely how I hoped :)