Skip to main content

ss_player_part_name

Function ss_player_part_name 

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

The name of part index, in part-index order — what turns the part_index an event carries back into something a human reads. An unnamed part reads as an empty string; null past the last part or with no pack bound.

Readable as soon as a pack is bound, while ss_player_part_count reads 0 until an animation is set up: walk it until it returns null. The string stays valid until the next call to this function on the same scene.

§Safety

handle must be a live handle or null.