playMaker

Author Topic: SendMessage Color not keeping Texture value  (Read 2499 times)

oOoANDOSoOo

  • Playmaker Newbie
  • *
  • Posts: 13
SendMessage Color not keeping Texture value
« on: July 09, 2013, 06:53:43 AM »
Hi,
The subject title says it all really. I am trying to use SendMessage with a Color parameter, and for the Texture (or color) I either use a Color variable or just simply choose a color... but if I run the project or sometimes just come out of the FSM and back into it again, the value for 'Texture' keeps either defaulting to 'None' or just defaults to White.

I am trying to make a FSM Modular so using Get/Set Properties is not going to help as far I as know.

:)

Am I missing something here?

Regards,
-Andos

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SendMessage Color not keeping Texture value
« Reply #1 on: July 09, 2013, 07:39:25 AM »
Hi,

 color and textures are two different things. Maybe you are getting confused with what persists and what is not in assets.

 if you modify a material, even during runtime, it will persists if you stop playing.

-- how do you apply the color to the texture?
-- are you using FsmTexture? is it where it looses its value? is it part of a prefab?

bye,

 Jean

oOoANDOSoOo

  • Playmaker Newbie
  • *
  • Posts: 13
Re: SendMessage Color not keeping Texture value
« Reply #2 on: July 09, 2013, 11:43:26 AM »
Hi
Sorry', I should further explain I am trying to change the color tint of a texture / sprite in a ngui button.
:-)

Regards,
-Andos

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SendMessage Color not keeping Texture value
« Reply #3 on: July 10, 2013, 06:03:26 AM »
Hi,

 You need to drag and drop the component itself onto a state, then you have access to the "color" property ( I tried on a Sliced sprite, in ngui example scene 'Tutorial 6'), and that is your color tint basically.

bye,

 Jean