API reference
BulletTimeCameraDefault
Select an effect and inspect the available presets.
Source: src/BulletTime/BulletTimeCameraDefault.cs.
| Member | Type / access | Description |
|---|---|---|
SelectedEffectIndex | int, read | Selected index, or -1 when randomization is enabled. |
RandomizeEffects | bool, read/write | Choose effects randomly. |
CameraEffectsCount | int, read | Number of configured effects. |
ChangeSelectedEffect(string name) | void | Select the last effect matching the name; logs and returns if absent. |
ChangeSelectedEffect(int index) | void | Select an effect by index. |
GetEffectName(int index) | string | Read an effect's name. |
Validate indices yourself: require index >= 0 && index < camera.CameraEffectsCount. The current index overloads contain an ineffective bounds check, so they do not reliably reject invalid indices.
For a deterministic selection, set RandomizeEffects = false and select an enabled effect containing enabled stages. Configure the effect list in the Inspector; the tutorial explains each stage group and gives a three-stage example.