playMaker

Author Topic: Get/set Canvas scaler's "Reference pixels per unit"  (Read 2409 times)

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 784
Get/set Canvas scaler's "Reference pixels per unit"
« on: June 20, 2018, 11:35:36 AM »
Hi,

I'm looking for a way to extract and define the following value of a Canvas scaler component without using get/set property:

Reference PPU

I haven't found anything like that on the ecosystem.
It's to be used to (hopefully) produce a pixel perfect display despite using the "fit with screen size" option.

terri

  • Sr. Member
  • ****
  • Posts: 389
    • terrivellmann.tumblr.com
Re: Get/set Canvas scaler's "Reference pixels per unit"
« Reply #1 on: August 12, 2018, 06:28:19 AM »
If you drag the component into a state you can use get/set property for these type of values.

Not as good as an action since the target object can't be a variable but can help a lot when an action doesn't exist.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Get/set Canvas scaler's "Reference pixels per unit"
« Reply #2 on: August 12, 2018, 08:43:46 AM »
Hi.
I will see if i can make an action for this in the comming week (replying on my phone)

Bump if i did not post yet by wednesday.