Skip to content

SmartImage 0.0.2-beta | Loading Indicators

Compare
Choose a tag to compare
@Auros Auros released this 27 Sep 04:50
· 3 commits to main since this release
  • Added loading indicators
  • Will show the static or animated frames assigned to that property as an image is loading. Great for larger images and GIFs.

Usage:

[SerializeField]
private SmartImageManager _smartImageManager;

[SerializeField]
private Sprite[] _loadingIndicatorFrames; 

private void Awake()
{
    // Must be at least one sprite.
    _smartImageManager.LoadingIndicator = SmartSprite.Create(_loadingIndicatorFrames, 0.5f);
}