📜  如何通过脚本编辑后处理 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.686000             🧑  作者: Mango

代码示例1
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
 
var volume = target.GetComponent();

if (volume.profile.TryGet(out var bloom))
{
    bloom.intensity.overrideState = true;
    bloom.intensity.value = 2f;
}