skip to Main Content

Scripting Support (C#)

All properties of Beautify are exposed through the Beautify component. A convenient way to access Beautify’s properties attached to the main camera is using:

BeautifyEffect.Beautify.instance.xxx = new value;

(BeautifyEffect is the namespace, while Beautify is the main class)

Where xxx is the name of the property. For example:

Beautify.instance.sharpen = 6f;

will change the power of sharpening to 6.

You can also trigger a blink effect calling:

Beautify.instance.Blink

method.

Please note that if you have multiple cameras with Beautify attached, Beautify.instance will only reference the first camera with Beautify attached. You can use GetComponent<Beautify>() on each camera to perform the same changes to the properties.

Back To Top