1681-engine / index / sliceAt
Function: sliceAt() ​
ts
function sliceAt(slice, frame?): AsepriteSliceKey | undefined;Defined in: src/anim/asepriteSlices.ts:12
The key of slice in effect on sprite frame frame: Aseprite keys a slice on the frame it changes and holds it until the next key, so the last key at or before the frame. Before the first key the slice is not there (undefined).
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
slice | AsepriteSlice | undefined |
frame | number | 0 |
Returns ​
AsepriteSliceKey | undefined