8000 GitHub - Klrohias/unimage-unity: A simple library that can load and process images (in asynchronous) in Unity
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0