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