pub trait LifecycleSink {
// Provided methods
fn on_ready(&mut self, _node: &NodeId) { ... }
fn on_process(&mut self, _node: &NodeId, _delta: f32) { ... }
}Expand description
Lifecycle dispatch interface through which engine systems invoke script lifecycle hooks.
Missing lifecycle callbacks are treated as no-ops rather than errors.
Provided Methods§
Sourcefn on_ready(&mut self, _node: &NodeId)
fn on_ready(&mut self, _node: &NodeId)
Invoked once when a node and its children have entered the active scene tree.
Sourcefn on_process(&mut self, _node: &NodeId, _delta: f32)
fn on_process(&mut self, _node: &NodeId, _delta: f32)
Invoked every frame during the main update tick with the elapsed frame delta time in seconds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".