29 lines
684 B
C#
29 lines
684 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Rendering.Universal;
|
|
using System.Collections;
|
|
|
|
public class opturn : MonoBehaviour
|
|
{
|
|
[Header("Sequence Settings")]
|
|
public Volume globalVolume;
|
|
public Image fadeInImage;
|
|
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
// 1. 初始设置:Bloom Intensity 设为 0
|
|
if (globalVolume != null && globalVolume.profile.TryGet<Bloom>(out var bloom))
|
|
{
|
|
bloom.intensity.Override(0f);
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|