You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(AssetCollection)]structSpriteAnimationSequences{// maybe this needs a new attribute?// `collection(array)` or something,// to distinguish from `Files`#[asset(key = "anim.jumps", collection(typed)]jumps:Vec<Handle<TextureAtlas>>,}
({
// just use RON "array syntax"// to list as many items as we need"anim.jumps": [
TextureAtlas (
path: "jump_long.png",
tile_size_x: 24.,
tile_size_y: 32.,
columns: 16,
rows: 1,
),
TextureAtlas (
path: "jump_med.png",
tile_size_x: 24.,
tile_size_y: 32.,
columns: 12,
rows: 1,
),
TextureAtlas (
path: "jump_short.png",
tile_size_x: 24.,
tile_size_y: 32.,
columns: 8,
rows: 1,
),
],
})
The text was updated successfully, but these errors were encountered:
Would it be possible to do something like this?
The text was updated successfully, but these errors were encountered: