Forums › 💬 Slate Sequencer › ⚙️ Support › Avoiding null reference exceptions when changing scenes › Reply To: Avoiding null reference exceptions when changing scenes
So far it seems that the following code, run just before I unload the scene, appears to do the trick:
foreach (var slateCutscene in FindObjectsOfType<Cutscene>())
{
if (slateCutscene.isActive)
slateCutscene.Stop();
}