Skip to main content

UIPostVignette

Post-processing vignette effect exposed by the Java runtime.

Create in the Editor

  1. Ensure there is a UIController in the scene.
  2. Create a GameObject and add UIRect.
  3. Add the UIPostVignette component.

How to Use

  1. Get the component with myObject.findComponent(UIPostVignette.class).
  2. Read or write the component properties to control behavior.
  3. 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;

}