Skip to main content

UISharpen

Post-processing sharpen 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 UISharpen component.

How to Use

  1. Get the component with myObject.findComponent(UISharpen.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 */;
UISharpen comp = myObject.findComponent(UISharpen.class);
if (comp != null) {
// set the intensity value:
comp.intensity = 1f;
// read the intensity value:
float intensityValue = comp.intensity;

// set the sharpenStrength value:
comp.sharpenStrength = 1f;
// read the sharpenStrength value:
float sharpenStrengthValue = comp.sharpenStrength;

// set the edgeThreshold value:
comp.edgeThreshold = 1f;
// read the edgeThreshold value:
float edgeThresholdValue = comp.edgeThreshold;

}