Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved How to make instantiated game object affected by scene fog?

Discussion in 'Addressables' started by socialtrens, May 29, 2023.

  1. socialtrens

    socialtrens

    Joined:
    Oct 23, 2017
    Posts:
    46
    I'm currently using Addressables (remote) to load an island. But the island not affected by scene fog. How do I make it work?
     
  2. Phan-Phantz

    Phan-Phantz

    Joined:
    Nov 11, 2015
    Posts:
    15
    Are other objects in the scene affected by the scene fog except the loaded island? Have you tried loading the same island from local Addressables bundle?

    One possible root cause is that you accidentally switch the active scene to the scene that doesn't have a Lighting setting for fog and then load the Addressable prefab into that scene.
     
    socialtrens likes this.
  3. socialtrens

    socialtrens

    Joined:
    Oct 23, 2017
    Posts:
    46
    After I set current scene as active scene, it's works now!
    I thought SetActiveScene is just for Additive scene, I'm using Single scene mode, that's why I never use SetActiveScene.
     
    Phan-Phantz likes this.