Search Feedback

13
votes

Add a pixelsPerUnit factor to UI.Image / Allow multiple Pixels Per Unit per texture

GUI

-

-

Currently, the Image component uses the sprite's pixels per unit variable in order to determine the sizes when slicing and tiling an image.
It is currently impossible for a user to have different slicing using only one texture. The only solution I have found was to duplicate the texture file and reimport it, which quickly bloats the texture atlas.

By copying the Image script, and simply applying a factor to the pixelsPerUnits variable, I have been able to make the slicing manually editable.

It would be handy to either make the pixelPerUnit variable virtual in order to be overriden,

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10750)

2D

(281)

Ads

(54)

AI & Navigation

(81)

Analytics

(130)

Animation

(395)

Asset Store

(355)

Asset Store Publisher

(15)

Assets

(543)

Audio

(184)

Cloud Build

(144)

Collaborate

(63)

Docs & Tutorials

(239)

Editor

(2507)

Everyplay

(17)

Game Performance Reporting

(21)

General

(978)

Graphics

(869)

GUI

(430)

Input

(172)

Licensing

(90)

Networking

(188)

Physics

(383)

Platforms

(440)

Profiling & Optimization

(84)

Runtime

(181)

Scripting

(1168)

Terrain

(170)

WebGL

(142)