Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jonesy81 on May 04, 2018, 03:26:18 PM

Title: Changing gameobject alpha
Post by: Jonesy81 on May 04, 2018, 03:26:18 PM
Hi,

Is there a simple way to change a gameobject's alpha over time? Or change a sprite's alpha or UI text's alpha over time?

Or are these things something I have to code a function for?

There are some actions that seems like they would do the trick like color interpolate and animate color but I haven't got any of them working properly.

Maybe I've hooked them up wrong?
Title: Re: Changing gameobject alpha
Post by: DanielThomas on May 04, 2018, 03:31:14 PM
The ones on ecosystem worked for me, also dotween(if you have those).
Could you show how you set it up?
Title: Re: Changing gameobject alpha
Post by: Jonesy81 on May 04, 2018, 03:46:11 PM
Thanks for answering and being so quick. :)

I tried many things and I'm fairly new to the program so I might be doing some stupid things. Íf you have a good solution that works in most cases, I would gladly hear and appreciate that.

I tried searching on ecosystem everything fade related but didn't see any other that u gui fade effect. Does that work on UI text?

Sprites are the main thing I'm worried about now, but I surely would like to learn how to do this to all of the different objects.

Also what is dotween?

Thanks!

EDIT: Okay thanks for that dotween hint. I downloaded Dotween free version and then bought the playmaker actions to that. I got fades working for sprites at least at this point. Here's hoping that there's an action for UI texts as well.

If anyone has experience with fading different objects in and out and want to chime in with the best practices I would be appreciative. Maybe this is one of the things that's best to do in code?