Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
/ unimage-unity Public archive

A simple library that can load and process images (in asynchronous) in Unity

License

Notifications You must be signed in to change notification settings

Klrohias/unimage-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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