playMaker

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

Broken Stylus

  • Junior Playmaker
  • **
  • Posts: 82
    • View Profile
Get/set Canvas scaler's "Reference pixels per unit"
« on: June 20, 2018, 08: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: 372
    • View Profile
    • terrivellmann.tumblr.com
Re: Get/set Canvas scaler's "Reference pixels per unit"
« Reply #1 on: August 12, 2018, 03: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: 3613
    • View Profile
    • jinxtergames
Re: Get/set Canvas scaler's "Reference pixels per unit"
« Reply #2 on: August 12, 2018, 05: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.