svga / SVGAPlayer-Unity

The SVGAPlayer implementation of Unity using Shader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:Apache License 2.0


Languages

Language:C# 97.2%Language:ShaderLab 2.8%