18 lines
508 B
C#
18 lines
508 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace BeautifyEffect
|
|
{
|
|
public class Demo4 : MonoBehaviour
|
|
{
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.T))
|
|
{
|
|
Beautify.instance.depthOfFieldTransparencySupport = !Beautify.instance.depthOfFieldTransparencySupport;
|
|
GameObject.Find("Beautify").GetComponent<Text>().text = ((!Beautify.instance.depthOfFieldTransparencySupport) ? "Beautify (Dof transparency support is OFF)" : "Beautify (DoF transparency support is ON)");
|
|
}
|
|
}
|
|
}
|
|
}
|