Decoding GIF example. Important note: we can't work with UI and Texture2D in threads. To workaround this: 1. SimpleGif deals with SimpleGif.Texture2D, which contains pixel array the same as UnityEngine.Texture2D. 2. You should call DecodeParallel from Coroutine to display progress and result.
Namespace:
Assets.PowerGif.Examples.Scripts
Assembly: Assembly-CSharp (in Assembly-CSharp.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class DecodeParallelExample |
| C# |
|---|
public class DecodeParallelExample : ExampleBase |
| C++ |
|---|
public ref class DecodeParallelExample : public ExampleBase^ |
| JScript |
|---|
public class DecodeParallelExample |
Inheritance Hierarchy
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Assets.PowerGif.Examples.Scripts.ExampleBase
Assets.PowerGif.Examples.Scripts.DecodeParallelExample
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Assets.PowerGif.Examples.Scripts.ExampleBase
Assets.PowerGif.Examples.Scripts.DecodeParallelExample