UIPostVignette
Post-processing vignette effect exposed by the Java runtime.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIPostVignettecomponent.
How to Use
- Get the component with
myObject.findComponent(UIPostVignette.class). - Read or write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIPostVignette comp = myObject.findComponent(UIPostVignette.class);
if (comp != null) {
// set the color value:
comp.color = new Color(255, 255, 255, 255);
// read the color value:
Color colorValue = comp.color;
// set the feather value:
comp.feather = 1f;
// read the feather value:
float featherValue = comp.feather;
// set the midPoint value:
comp.midPoint = 1f;
// read the midPoint value:
float midPointValue = comp.midPoint;
// set the roundness value:
comp.roundness = 1f;
// read the roundness value:
float roundnessValue = comp.roundness;
}