How About Changing Ambient Lighting to Specific Color?

Lighting will change when the player pass through a portal.

How do I set a custom color like 8DB3CC, FFFFFF ?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class whiteout_bunker_enter : MonoBehaviour {
public GameObject snow;
public GameObject fog;
public GameObject triggero;
public GameObject triggerx;
public GameObject level;
  AudioSource audioSource;
    // Use this for initialization
    void Start () {
         audioSource = level.GetComponent<AudioSource>();
            }
   
    // Update is called once per frame
    void OnTriggerEnter(Collider other) {
        audioSource.pitch = -0.57f;
        RenderSettings.fog = false;
        RenderSettings.ambientEquatorColor = Color.white;
        RenderSettings.ambientSkyColor = Color.white;
        RenderSettings.ambientGroundColor = Color.white;
        snow.active=false;
        fog.active=false;
        triggero.active=false;
        triggerx.active=true;
    }
}

The ColorUtility class has hexadecimal string to Unity Color conversion methods;

If your color will not change during runtime then it’ll be more efficient to use the RGB values directly.

Color white = new Color(1F, 1F, 1F, 1F); // hex = #FFFFFF

thnx for the reply I will test it soon with my Silent Hill effect transition which uses multiple ambient lighting color as the normal world turns to the nightmare world.

Also – if you have a set of colours you wish to use, you can add the colour(s) as a variable, which you can set in the inspector. :slight_smile: