Hi everyone! Can you help me? How can I switch off this value from code?
![alt text][1]
[1]: /storage/temp/166500-unity-cc.png
That's piece of my code now:
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class Player : MonoBehaviour
{
public Volume volume;
public void Start()
{
ShadowsMidtonesHighlights _smh = null;
if (volume.profile.TryGet(out _smh))
{
_smh.enabled.value = false;
}
}
}
↧