Skip to content

The SVGAPlayer implementation of Unity using Shader.

License

Notifications You must be signed in to change notification settings

svga/SVGAPlayer-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVGAPlayer-Unity

The SVGAPlayer implementation of Unity using Shader.

Introduction

SVGAPlayer is a light-weight animation renderer. This is Unity implementation for it.You can play .svga file on all platform.

Details

Quickstart

  1. Set
  • Canvas Scaler UI Scale Mode is Constant Physical Size

or

  • Scale With Screen Size Reference Resolution y = Camera.Size * 200 and Match = 1
  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()

Other

SvagPlayerData.cs fork from LancerComet/SVGAPlayer-UWP.

About

The SVGAPlayer implementation of Unity using Shader.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published