Skip to content

Lens Drops Effect

Updated

Raindrops on the camera lens that land, slide down and dry off.

Type
comp-lens-drops-effect
Script class
LensDropsEffectComponent
Per entity
One
Version
1.3.0

Read about it in Light and lens effects: 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
advance 0 0 ≤ x ≤ 60
cling 1 0 ≤ x ≤ 5
count 40 0 ≤ x ≤ 1000, integer
duration 10 0 ≤ x ≤ 60
evaporation 6 0.1 ≤ x ≤ 30
gravity 1 0 ≤ x ≤ 10
rate 20 0 ≤ x ≤ 100
size 0.03 0.005 ≤ x ≤ 0.2

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(LensDropsEffectComponent);
if (component) log(component.props);
}