Skip to content

AssetLoader ImageAsset Size #501

@YannMarti

Description

@YannMarti

If i use the assetloader the image is set in the animation in its original size. In 0.14.0 how can i change it so the image is set to the size of its placeholder in the animation? Before we could get the size of the original like so:

if (asset is ImageAsset) {
         imageAssetReference = asset;
         originalImageSize = Size(asset.width, asset.height);
  }

Since in the new version ImageAsset doesnt have a width and height proprty anymore, is there no way to get the sice of the asset from the animation anymore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions