Skip to main content

ss_runtime_set_unit

Function ss_runtime_set_unit 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_set_unit( context: *mut c_void, unit: i32, )
Expand description

0 = pixels (the default), 1 = normalized, which divides each part’s position by the canvas size. Sizes, local vertices and UVs stay in pixels. Any other value is pixels.