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
url
stringUrl with the animation.
type
AnimationTypeOne of the AnimationType values; Any means that the function should try to autodetect the animation type.
Returns
- bool
true
if the operation succeeded,false
otherwise.
Examples
var resPrefix = $"embres:ControlsSample.Resources.Animation.";
var animationPlant = $"{resPrefix}Plant.gif";
animation.LoadFromUrl(animationPlant);
animation.Play();