Glitch Effect
Updated
Tears and shifts the image now and then, like a broken video signal.
- Type
comp-glitch-effect- Script class
GlitchEffectComponent- Per entity
- One
- Version
- 1.3.0
Read about it in Stylize effects: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
active |
true |
|
columns |
0.05 |
0 ≤ x ≤ 1 |
delay |
[1.5,3.5] |
|
delay.0 |
0 ≤ x ≤ 10 |
|
delay.1 |
0 ≤ x ≤ 10 |
|
duration |
[0.6,1] |
|
duration.0 |
0 ≤ x ≤ 5 |
|
duration.1 |
0 ≤ x ≤ 5 |
|
ratio |
0.85 |
0 ≤ x ≤ 1 |
strength |
[0.3,1] |
|
strength.0 |
0 ≤ x ≤ 1 |
|
strength.1 |
0 ≤ x ≤ 1 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A broken video signalThe camera's Glitch effect tears and shifts the view now and then, like a damaged feed. Buttons switch between a calm feed, the default glitches and a badly broken signal.
Press Calm, Glitchy or Broken and watch how often and how hard the picture tears. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(GlitchEffectComponent); if (component) log(component.props);}