I trying to make a script that triggers a sound after every camera switch automatically in slate to make transitional sounds easier. But, I don’t how to do this. I would want the script to check if the camera ends, then plays a sound, and then do that until the end of the cut scene.
Hello there!
Sorry for the late reply.
Do you mean to create a custom Slate clip to be used within the cutscene timeline, or an external script completely outside of Slate?
In the case of a non-Slate clip, you can use the static events that the DirectorCamera class has. There is specifically an event for whenever the camera cuts to another camera. The event is called onCut (once again, found on DirectorCamera class).
Is this related to what you want, or did I misunderstood the question?
Thanks!
<span style=”color: #323232; font-family: ‘Open Sans’; font-size: 12px; background-color: #fbfbfb;”>I mean to create a custom Slate clip (that play sounds after every cutscene without manually inserting and placing audio clips at every transition) to be used within the cutscene timeline. </span>
Hello again and sorry for the late reply.
I am bit confused 🙂 A custom Slate Clip, does need to be added in the cutscene anyway, so if for example a custom Slate clip is created that for example plays a sound (one-off instead of like the existing Audio Tracks), it will still need to be added at the end of every cutscene.
If you want to totally avoid adding any clips manually in cutscenes to play a sound, then I would suggest to please take a look at my previous post and utilize the events found on the DirectorCamera type.
Please let me know.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.