frameCount fix

This commit is contained in:
2025-01-10 19:29:28 +01:00
parent a4437fadce
commit 3869eefaaf
2 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,8 @@ export class Sprite extends BaseSprite {
isLooping: spriteAction.getIsLooping(),
frameWidth: spriteAction.getFrameWidth(),
frameHeight: spriteAction.getFrameHeight(),
frameRate: spriteAction.getFrameRate()
frameRate: spriteAction.getFrameRate(),
frameCount: spriteAction.getSprites()?.length
}))
}
} catch (error) {