Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: NuclearNapalm on June 18, 2015, 03:12:04 AM

Title: Set Canvas Group Properties
Post by: NuclearNapalm on June 18, 2015, 03:12:04 AM
Hi everyone!
Working on my project I encountered situation when I need to hide GUI elements without disabling gameobject to be able send events from scripts and FSMs. I found solution (http://philwinkel.com/2014/08/22/show-hide-ui-elements-in-unity3d-4-6/) that works really well - use Canvas Group component and change alpha and interactable parameter. It's pretty easy to do it from script, but I didn't find any action to modify Canvas Group component either inside PlayMaker or wiki nor in Eco and google. So I decided to write my own action and I'm glad to share it with you!
Title: Re: Set Canvas Group Properties
Post by: jeanfabre on June 18, 2015, 04:31:42 AM
Hi,

 Very good! that's excatly the problem I am facing these days on a project. I went for the disabling of objects. but with your input, I think I'll definitly try your system.

 I'll put this on the ecosystem, as part of the UI package as well.

Bye,

 Jean
Title: Re: Set Canvas Group Properties
Post by: NuclearNapalm on June 18, 2015, 04:41:32 AM
I'll put this on the ecosystem, as part of the UI package as well.
Great! I really appreciate it :) I hope it will be useful for PlayMaker users.
Title: Re: Set Canvas Group Properties
Post by: jeanfabre on June 22, 2015, 08:53:14 AM
Hi,

 Ok, it's up on the Ecosystem. I modified the name to stay standard to the naming convention I adopted with other, and also made each property not mandatory, to avoid conflicts.

 Bye,

 Jean