UIBloom
Post-processing bloom 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
UIBloomcomponent.
How to Use
- Get the component with
myObject.findComponent(UIBloom.class). - Read or write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIBloom comp = myObject.findComponent(UIBloom.class);
if (comp != null) {
// set the intensity value:
comp.intensity = 1f;
// read the intensity value:
float intensityValue = comp.intensity;
// set the threshold value:
comp.threshold = 1f;
// read the threshold value:
float thresholdValue = comp.threshold;
// set the blurRadius value:
comp.blurRadius = 1f;
// read the blurRadius value:
float blurRadiusValue = comp.blurRadius;
// set the quality value:
comp.quality = UIBloom.Quality.LOW;
// read the quality value:
Quality qualityValue = comp.quality;
}