Skip to content

mopsicus/unity-crop-scale-texture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crop and scale texture in Unity

Simple utils to crop and scale Texture2D in Unity app.

As we can not use C# System.Drawing.Imaging namespaces in Unity, script make all manipulations with Texture2D.

Features

  • Crop texture with options: all corners, center or custom with offset

How to use

  1. Copy the files into your existing unity project asset folder
  2. Call scale or crop method
  3. You are the best

Demo

Open Demo scene and build, to try how it works

Demo

About

Simple utils to crop and scale Texture2D in Unity app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages