I found an issue, it didn't load when Portal not yet destroyed

Hey Sam, I found an issue when I set my fading too long, especially the fadeInTime, and then I moved my player to the portal, the gameObject of old portal not yet destroyed, so it makes me can’t load the other scene and get conflict between FadeIn() and FadeOut(). what’s the best way to solve it?

Why is your fade so long? The fade should preferably be done before you can move the character.

That being said, there is an issue with conflicting faders that I believe Sam fixes at some point later in the course. But entering a portal when another is still processing is not ideal. The fade shouldn’t be that long. I would personally probably disable the character movement until the fade is complete, enabling it right at the end of the fade.

Sam fixes this in the Fixing the Fader lecture towards the end of the course. Fixing The Fader | GameDev.tv

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms