Skip to main content

register_animated_item_signal

Function register_animated_item_signal 

Source
pub fn register_animated_item_signal(
    ctx: &mut BuildContext<'_>,
    signal: &Signal<f32>,
)
Expand description

Register an item-owned Signal<f32> with the SceneView’s animation scheduler. Call this from inside SceneItem::register_bindings for every animated signal the item exposes.

Equivalent to ctx.register_animated_signal(signal) — the register_bindings callback is invoked while the framework’s self_id() is the SceneView’s WidgetId, so the signal ends up owned by the right widget for idle-gate tracking.

Provided as a named helper so item authors don’t need to know the underlying BuildContext API surface — call this and your signal’s animate_to calls are framework-managed.