Skip to main content

ss_player_set_alpha

Function ss_player_set_alpha 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_set_alpha( handle: *mut SsPlayer, alpha: f32, )
Expand description

Player-level fade, clamped to 0..1. Mask coverage is unaffected: a faded player clips exactly as it would at full opacity.

Part by part, so overlapping parts read more opaque than alpha, unless the scene fades each player as one layer (ss_scene_set_group_alpha).

ยงSafety

handle must be a live handle or null.