Skip to main content

ss_player_set_animation

Function ss_player_set_animation 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_set_animation( handle: *mut SsPlayer, anim_name: *const c_char, ) -> i32
Expand description

Select the animation to play, rebuilding the instance tree. It is left at its start frame and not playing — call ss_player_play to start it.

This is where playback allocates (contexts, slots), so ss_player_play and the other transport calls stay allocation-free.

§Safety

anim_name must be a NUL-terminated UTF-8 string.