Hooks
useSceneContext
Access the progress value from a parent Scene component.
Overview
useSceneContext() accesses the progress value from a parent <Scene>. Useful for building custom components that react to scene progress.
Usage
Returns
| Property | Type | Description |
|---|---|---|
progress | number | Current scene progress from 0 to 1 |
Throws an error if used outside a <Scene>.