Unity Crop Scale Texture by mopsicus - 5

Games & Projects

Simple utils to crop and scale Texture2D in Unity app

Unity 2019.1.9f1MIT LicenseUpdated 134 days agoCreated on July 9th, 2019
Go to source

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

Show all projects by mopsicus