The closest thing to what you are after, could be done by checking if ‘root.currentTime == 0’. When the Stop button in the editor is clicked or the cutscene is anyhow rewinded, the cutscene is sampled at time 0.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespaceSlate.ActionClips{
publicclassTestClip:ActorActionClip{
protectedoverridevoidOnReverse(){
if(root.currentTime==0){
Debug.Log("Cutscene Reverse");
}else{
Debug.Log("Clip Reverse");
}
}
}
}
Let me know if that works for you.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.