Skip to main content

ss_runtime_get_active_event_instance

Function ss_runtime_get_active_event_instance 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_get_active_event_instance( context: *mut c_void, slot_index: u32, ) -> ss_event_instance_info
Expand description

Resolve the active EventInstance for slot_index on the parent’s currently selected animation, at the current frame. Returns SS6 default semantics (is_synthetic_default = true, loop_num = 1, speed = 1.0) when no event is active, so callers don’t need to branch on the no-event case.

start_label_hash / end_label_hash are returned raw. They are already resolved internally by ss_instance_slot_step for the child runtime — most Players should consume the slot helper rather than resolving labels themselves.