Ruslan Plastun
Ruslan Plastun

Reputation: 2254

Reference Pixels Per Unit

I have a simple canvas (with Render Mode set to Constant Pixel Size) and with a sprite in it. I tried changing Reference Pixels Per Unit of the Canvas Scaler and Pixels Per Unit of the sprite, but with no result. The image has still the exact same size on canvas.

enter image description here

What is the purpose of Reference Pixels Per Unit?

Upvotes: 0

Views: 1971

Answers (1)

See this answer on the Unity forums: https://answers.unity.com/questions/1309193/what-does-reference-pixels-per-unit-change-visuall.html:

Just did an experiment. Sprite with pixels per unit set to 100 and canvas with reference per unit set to 200 will make the sprite shown twice larger than sprite with pixels per unit set to 100 and canvas with reference per unit set to 100. But in order to make the change happen visually, you need to click Set Native Size of the Image:

Showing "Set Native Size" button

Apparently you will see the difference when you press "Set Native Size" on an Image.

Upvotes: 2

Related Questions