Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: submono on March 22, 2012, 11:17:43 PM
-
Hi everyone,
how can I change the Property "color" of a material using Set Property in Playmaker? There seem to be no input field for Value.
Thanks,
Sven
-
Hi,
Have you tried using the Set Material Color action instead: https://hutonggames.fogbugz.com/default.asp?W380 (https://hutonggames.fogbugz.com/default.asp?W380)
set property action is for "object" variables only for now.
If you are not confortable with the general concept of playmaker, let me know, and I'll detail a lot more with a step by step instruction.
Bye,
Jean
-
Hi Jean,
thanks for the quick reply! Worked like a charm :) Anyway, will more properties like color finally be implemented in Set Property? Would be nice to have everything in one place.
Best,
Sven
-
Set Property should already support Color, but right now drilling down to nested properties is a bit of a pain - you have to use a Get Property for each level. Get/Set Property also only recognizes Object variable types (not Material and Texture variables). I hope to make this all a lot easier in an update soon!
EDIT: Actually Set Property doesn't support Color yet! Will add that to the list...
-
I am trying to set property -> color, on an NGUI component.
It works fine if I hard code the color variable in the set property action.
(https://dl.dropbox.com/u/12996303/set_prop_color1.PNG)
However when I try to use my own variable,
(https://dl.dropbox.com/u/12996303/set_prop_color2.PNG)
I hit play and the color variable I set turns to "none".
(https://dl.dropbox.com/u/12996303/set_prop_color3.PNG)
Which causes the color to be set to black when the actions runs. Very frustrating because it sort-of works, but only hard coded. It is very important to load my own color variable, because I am doing a web application that loads this data from a server...
-
I really hate to bump, but this was buried to second page. I feel this issue needs attention.
-
I'm having this same exact issue. :(
I can set the Color field when running in the editor to the correct variable and it works as it is supposed to. The field variable is reset when the editor is started up. It could happen when the Start transition fires on the FSM or earlier.
-
Same issue here, really need some random colors too. Any fix please?
-
Just wanted to follow up on this thread. This bug should be fixed in newer versions.