Search Unity

Feedback Coroutine doesn't start while the Game view is deactivated !!

Discussion in 'Editor & General Support' started by KinanGH, May 11, 2021.

  1. KinanGH

    KinanGH

    Joined:
    Dec 3, 2019
    Posts:
    37
    When my character collides with a trigger I start a coroutine which loads a new scene additively...

    The issue is:
    For speed purposes I change the character position in the Scene view manually (while the Game view is hidden), so when my character reaches the trigger, the coroutine doesn't start at all, but when I change to the Game view suddenly my coroutine starts, and if I collided with the trigger multiple times the coroutine starts multiple times at once.

    So the fix is to keep your game view shown all the time.
    I don't know if this is a bug or is intended for performance things, I'm using Unity 2020.1.6.f1.

    Just posted in case someone stumbled upon this problem.