playMaker

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

Loic Joint

  • Junior Playmaker
  • **
  • Posts: 76
disable "pixel correct" of a GUI Label [SOLVED]
« on: December 12, 2011, 09: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, 12:41:44 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: disable "pixel correct" of a GUI Label
« Reply #1 on: December 12, 2011, 04: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
Re: disable "pixel correct" of a GUI Label
« Reply #2 on: December 13, 2011, 03:55:59 AM »
The prefabe work perfectly ! Thank you for your help alexchouls ^^