Skip to content

Water Caustics

Updated

Paints moving caustic light on this entity where it is under the water, seen while the camera is under a Water Volume.

Type
comp-water-caustics
Script class
WaterCausticsComponent
Per entity
One
Version
1.1.0

Read about it in Water: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
strength 1 0 ≤ x ≤ 1

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(WaterCausticsComponent);
if (component) log(component.props);
}