Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (24 loc) · 763 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 763 Bytes

Unimage Unity

A simple library that can load and process images (in asynchronous) in Unity.
Based on Unimage Native.

Install

Open Unity Editor > Window > Package Manager > Add from Git URL:

https://github.com/Klrohias/unimage-unity.git#0.1.3

Usage

using Unimage;
...

var processor = new UnimageProcessor();
processor.Load(uwr.downloadHandler.data);
processor.Resize(100, 100);
uiRawImage.texture = processor.GetTexture();

// or you can use async api

var processor = new UnimageProcessor();
await processor.LoadAsync(await File.ReadAllBytesAsync("..."));
await processor.ResizeAsync(100, 100);
uiRawImage.texture = await processor.GetTextureAsync();

License

MIT