Forum rules - please read before posting.

Problem with Fast Sky

I'm using Fast Sky by GapperGames Studios for my sky. When loading a save right after launching the game, the environment is completely black with the sky being a white blur. I'm not entirely sure if this is a problem with AC or Fast Sky, but no other sky system is doing this for me. When I reload the same scene, it works normally. Is there a way to reinitialize the sky during runtime, to make sure it works correctly?

Broken sky: https://imgur.com/PzAZ8yN
Normal sky: https://imgur.com/YNOebJI

Comments

  • I'm not familiar with the asset - to be clear: this only occurs when loading a save that was recorded in a different scene to the one you load from?

    I can't think of anything related to AC's save-loading process that would cause a conflict, but if custom code is needed to run at the point an AC scene is initialised, you can do so by hooking into the OnInitialiseScene custom event:

    using UnityEngine;
    using AC;
    
    public class InitialiseSceneExample : MonoBehaviour
    {
    
        void OnEnable () { EventManager.OnInitialiseScene += OnInitialiseScene; }
        void OnDisable () { EventManager.OnInitialiseScene -= OnInitialiseScene; }
    
        void OnInitialiseScene ()
        {
            //
        }
    
    }
    
  • to be clear: this only occurs when loading a save that was recorded in a different scene to the one you load from?

    Yes, exactly this. And after any scene with a sky is loaded, any scene will work normally while loading after that.

  • I played around with the asset on my end and couldn't recreate such an issue. Aside from the included script that changes the colours, it looks like it's just a shader. I can't see how AC would be affecting it.

  • Probably a shader issue. I think I figured it out, In the Environment section of the Lighting tab, I had to change the Environment Lighting Source from skybox to color. Then the sky loads normally.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.