The SVGAPlayer implementation of Unity using Shader.
SVGAPlayer is a light-weight animation renderer. This is Unity implementation for it.You can play .svga
file on all platform.
- Set
- Canvas Scaler UI Scale Mode is Constant Physical Size
or
- Scale With Screen Size Reference Resolution y = Camera.Size * 200 and Match = 1
- API
public void LoadSvgaFileData(Stream svgaFileBuffer){}
/// <summary>
/// Start play
/// </summary>
/// <param name="n"></param> Play n times,0 is infinite,default 0
/// <param name="callback"></param> Execute after playback is complete
public void Play(int n, Action callback = null){}
public void Pause()
SvagPlayerData.cs
fork from LancerComet/SVGAPlayer-UWP.