playMaker

Author Topic: disable "pixel correct" of a GUI Label [SOLVED]  (Read 2393 times)

Loic Joint

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
disable "pixel correct" of a GUI Label [SOLVED]
« on: December 12, 2011, 07:38:48 AM »
Hi,

I try to desactivate the "pixel correct" option of a GUI Label creat with playmaker, is it possible ?

I use the text of a GUI Label to make a time countdown, but the text is not scale if the screen resolution change.

Thank you for your help !

LOIC
« Last Edit: December 13, 2011, 10:41:44 AM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3608
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: disable "pixel correct" of a GUI Label
« Reply #1 on: December 12, 2011, 02:27:32 PM »
I was going to say to use the Set Property action, but when I went to test it, Pixel Correct doesn't appear in the list.

Apparently Pixel Correct is not a scriptable property:
http://forum.unity3d.com/threads/36704-GUIText-Pixel-Correct-Not-a-scriptable-property

When you say "a GUI Label created with playmaker", what do you mean exactly? Are you adding a component or instantiating a prefab? Since Pixel Correct is not scriptable, it seems like you'd need to use a prefab, and spawn that in Playmaker...

Loic Joint

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: disable "pixel correct" of a GUI Label
« Reply #2 on: December 13, 2011, 01:55:59 AM »
The prefabe work perfectly ! Thank you for your help alexchouls ^^