Files
ichni_Official/Assets/Scripts/Manager/PostProcessingManager.cs
SoulliesOfficial 25b6da25ae 同步
2026-03-31 07:51:40 -04:00

31 lines
797 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Sirenix.OdinInspector;
using SLSUtilities.General;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
namespace Ichni
{
public class PostProcessingManager : Singleton<PostProcessingManager>
{
public static Volume GlobalVolume => instance.globalVolume;
[ShowInInspector]
public Volume globalVolume;
protected override void Awake()
{
base.Awake();
if (globalVolume != null)
{
// Force instantiate the volume profile on awake so it doesn't happen mid-game
_ = globalVolume.profile;
}
}
}
}