Skip to content
Simple utils to crop and scale Texture2D in Unity app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
Packages
ProjectSettings
.gitignore
LICENSE
README.md

README.md

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

You can’t perform that action at this time.