Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: IIKII on June 24, 2020, 06:14:45 AM

Title: set property with every second? [SOLVED]
Post by: IIKII on June 24, 2020, 06:14:45 AM
Hi, is there a set property action with every second option? I am using it in a time scale 0 situation and it doesnt update the ugui slider visually.

Title: Re: set property with every second?
Post by: djaydino on June 24, 2020, 01:36:05 PM
Hi.
If its a ui slider, why are you using Get/set Properties?

There is a ui slider action : ui slider set value.

you should avoid using Get/Set Properties, only for 3rd party assets which do not have actions.
Title: Re: set property with every second?
Post by: IIKII on June 25, 2020, 10:21:49 AM
The set slider value doesn't have a 'every second' option , so it's not working too with time scale 0.

Hi.
If its a ui slider, why are you using Get/set Properties?

There is a ui slider action : ui slider set value.

you should avoid using Get/Set Properties, only for 3rd party assets which do not have actions.
Title: Re: set property with every second?
Post by: djaydino on June 25, 2020, 12:14:57 PM
Hi.
I just tested and checked the script.
The action does work with time scale 0.

Can you give more information of what you want to achieve?

If for example you want to add 1 each second then you could use a 'wait' and set it to 'real time' then add to the variable of the slider.
Title: Re: set property with every second?
Post by: IIKII on June 26, 2020, 10:27:24 AM
Hi.
I just tested and checked the script.
The action does work with time scale 0.

Can you give more information of what you want to achieve?

If for example you want to add 1 each second then you could use a 'wait' and set it to 'real time' then add to the variable of the slider.

The slider visual couldnt update when i changed the value. Yeah i think using a wait might work, thanks.