Reply To: Sub-Cutscenes & Cross-scene references

Slate Forums Support Sub-Cutscenes & Cross-scene references Reply To: Sub-Cutscenes & Cross-scene references

#2457
Gavalakis
Keymaster

Hello there. Please let me answer your questions:

1) It is not possible to save the AnimateProperties clip into an asset for re-usability. This is something that I could add however.

2) Subcutscene clips can be added in a Director Action Track. As to do this in code, you need to get a reference of the Director Action Track. To do this you need to give the Director Action Track and custom name in its inspector and then use the cutscene.FindElement(string path) method to get a reference to that track. Then given that reference you can add a SubCutscene action clip to it using the track.AddAction(float time) method (this method returns the new action clip reference too). For time you can use the length of the Cutscene if you want to add it at the end of the cutscene (?), but you will probably also want to change the length of the cutscene as well since you’ve added a new clip. Finally, having the reference of the action clip you can set its parameter and specifically the “subCutscene” in this case as normal.

Code example:

3) Unfortunately cross-scene references are not supported. They used to be supported but Unity changed that.

 

Let me know.

Thanks!

Join us on Discord: https://discord.gg/97q2Rjh