Method LoadFromUrl
LoadFromUrl(string, AnimationType)
Loads the animation from the given file or resource url.
public virtual bool LoadFromUrl(string url, AnimationType type = AnimationType.Any)
Parameters
urlstringUrl with the animation.
typeAnimationTypeOne of the AnimationType values; Any means that the function should try to autodetect the animation type.
Returns
- bool
trueif the operation succeeded,falseotherwise.
Examples
var resPrefix = $"embres:ControlsSample.Resources.Animation.";
var animationPlant = $"{resPrefix}Plant.gif";
animation.LoadFromUrl(animationPlant);
animation.Play();