Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: XavPlay on November 13, 2017, 03:59:26 PM

Title: Help to find a tutorial: UGUI Slider to control a blendtree [SOLVED]
Post by: XavPlay on November 13, 2017, 03:59:26 PM
Hello to you all!

I'm Xavier, a french Playmaker user. Is someone in the forum who can share me a link to a tutorial, give me an hint on how I can control the blend amount in a blendtree with a UGUI Slider. I tried lot of solutions, but strangely, it's like the Slider isn't able to update the value of the blendtree.

All the best to everyone. I'm impatient to read your comments.
Xavier
Title: Re: Help to find a tutorial: UGUI Slider to control a blendtree
Post by: djaydino on November 13, 2017, 06:27:52 PM
Hi,
Do you have the ugui action : Ugui Slider Get Value?

If not you need to get 'Ugui proxy full' from the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

Also be sure to set 'every frame'.

Then use "Set Animator Float" to set the value for your blend, also set this to 'every frame'
Title: Re: Help to find a tutorial: UGUI Slider to control a blendtree
Post by: XavPlay on November 14, 2017, 12:05:59 PM
Hi djaydino

Thanks, I'll try again this way. I feel confident I did this way, but it seemed that the float linked to the blendtree was not found / updated as I was testing the slider.

Thanks,
Xavier
Title: Re: Help to find a tutorial: UGUI Slider to control a blendtree
Post by: djaydino on November 14, 2017, 04:23:13 PM
Hi,
I tested it before i wrote to you, it should work.

Can you show your fsm/states/actions and the animator (video or images)
Title: Re: Help to find a tutorial: UGUI Slider to control a blendtree
Post by: XavPlay on November 15, 2017, 03:36:57 AM
Hi djaydino,

Thanks, it works now. In fact, I believed that I put the fsm states in the wrong object, even if I made link to the object. Everything is working fine now.

Thank you very much.
Xavier