Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Loic Joint on December 12, 2011, 09:38:48 AM

Title: disable "pixel correct" of a GUI Label [SOLVED]
Post by: Loic Joint 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
Title: Re: disable "pixel correct" of a GUI Label
Post by: Alex Chouls 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...
Title: Re: disable "pixel correct" of a GUI Label
Post by: Loic Joint on December 13, 2011, 03:55:59 AM
The prefabe work perfectly ! Thank you for your help alexchouls ^^