UISharpen
Post-processing sharpen 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
UISharpencomponent.
How to Use
- Get the component with
myObject.findComponent(UISharpen.class). - Read or write the component properties to control behavior.
- 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;
}