UIChromaticAberration
Post-processing chromatic aberration 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
UIChromaticAberrationcomponent.
How to Use
- Get the component with
myObject.findComponent(UIChromaticAberration.class). - Read or write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIChromaticAberration comp = myObject.findComponent(UIChromaticAberration.class);
if (comp != null) {
// set the falloff value:
comp.falloff = 1f;
// read the falloff value:
float falloffValue = comp.falloff;
// set the strength value:
comp.strength = 1f;
// read the strength value:
float strengthValue = comp.strength;
}