Skip to main content

ss_player_add_ssab

Function ss_player_add_ssab 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_add_ssab( handle: *mut SsPlayer, pack_name: *const c_char, data: *const u8, len: usize, ) -> i32
Expand description

Register an .ssab pack under pack_name without changing what plays.

Every pack an animation can reference must be registered before ss_player_set_animation, since external instance parts resolve by pack name. Embedded-mode packs also carry their atlases; those are decoded and uploaded on the next ss_scene_update.

ยงSafety

pack_name must be a NUL-terminated UTF-8 string and data must point at len readable bytes. Neither is retained beyond the call.