I have a Unity 2D scene consisting mainly of Sprites. I have disabled the sprite renderer for several of these sprites because they only show up when the player takes some action. My issue is when Unity loads the level, these sprites briefly show up ‘flashing’ onto the screen before they are hidden. Is there any way around this?
Try and hide them in the Awake() function if you aren’t already, instead of Start() which would usually make sense.
For the record, the way I ended up solving this was a bit of a hack. I made a black sprite on top of everything (on a “Frontmost” sorting order layer) which would fade out then destroy when the scene was loaded. Since it’s the frontmost sprite, it covers up the flashes of the other sprites.