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
If sprite of a SpriteComponent is set or updated after construction of the component, the size of the component does not update.
Expected behavior
Ideally the size of SpriteComponent should be automatically updated by default. Additionally a an option can be provided to turn this resizing off by setting a flag in SpriteComponent.
Steps to reproduce
Setting up a sprite component like this will make it render with zero size:
final spriteComponent =SpriteComponent();
spriteComponent.sprite =awaitSprite.load('arrow_up.png');
add(spriteComponent);
Flutter doctor output
NA
More environment information
Flame version: 1.6.0
Platform affected: All
Log information
Enter log information in this code block
NA
More information
I can work on this.
The text was updated successfully, but these errors were encountered:
Current bug behavior
If sprite of a
SpriteComponent
is set or updated after construction of the component, the size of the component does not update.Expected behavior
Ideally the size of
SpriteComponent
should be automatically updated by default. Additionally a an option can be provided to turn this resizing off by setting a flag inSpriteComponent
.Steps to reproduce
Setting up a sprite component like this will make it render with zero size:
Flutter doctor output
NA
More environment information
Flame version: 1.6.0
Platform affected: All
Log information
NA
More information
I can work on this.
The text was updated successfully, but these errors were encountered: