Skip to main content

sprite

Function sprite 

Source
pub fn sprite(name: &[u8], rect: (i32, i32, i32, i32), trim: [i32; 8]) -> V
Expand description

An NGUI UISpriteData: name, its rectangle, then the borders and paddings, which the cutter does not apply (docs/BATCH_SPEC.md section 5).