playMaker

Author Topic: Set Canvas Group Properties  (Read 2842 times)

NuclearNapalm

  • Playmaker Newbie
  • *
  • Posts: 3
    • Nuclear Napalm Dev Blog
Set Canvas Group Properties
« 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 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!
Another generic one-man indie game studio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Canvas Group Properties
« Reply #1 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

NuclearNapalm

  • Playmaker Newbie
  • *
  • Posts: 3
    • Nuclear Napalm Dev Blog
Re: Set Canvas Group Properties
« Reply #2 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.
Another generic one-man indie game studio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Canvas Group Properties
« Reply #3 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