playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
action to set or fade alpha for group of ui objects?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: action to set or fade alpha for group of ui objects? (Read 6518 times)
Spunkyinteractive
Playmaker Newbie
Posts: 22
action to set or fade alpha for group of ui objects?
«
on:
December 04, 2016, 09:50:06 PM »
Currently i have placed each of my menus under a parent object each of which has a 'canvas group' on it. With this setup I use the 'u gui canvas group set alpha' action to have my menu fade in and out. However, the issue here is that the 'canvas group' component forces all children objects to have their raycasts turned on or off. Since some objects are buttons i cant just have raycasts all turned off, however raycasts are expensive for perf and unity best practices suggests to turn off raycasts on any objects that dont require them (ie. text objects).
Is there an action that takes advantage of other unity calls in order to fade a canvas? Or any other way of going about fading entire blocks of ui without forcing raycasts on?
For example
https://docs.unity3d.com/ScriptReference/UI.Graphic.CrossFadeAlpha.html
thanks,
-Stephen
«
Last Edit: December 04, 2016, 10:07:40 PM by Spunkyinteractive
»
Logged
jeanfabre
Administrator
Hero Member
Posts: 15620
Official Playmaker Support
Re: action to set or fade alpha for group of ui objects?
«
Reply #1 on:
January 09, 2017, 03:57:04 AM »
Hi,
ok, I added crossFadeAlpha and crossFadeColor actions for uGui. It's on the Ecosystem
Bye,
Jean
Logged
Alatriste
Full Member
Posts: 198
Re: action to set or fade alpha for group of ui objects?
«
Reply #2 on:
December 01, 2018, 02:16:50 PM »
Is this action still working? I tried in my project and I cannot make it work. My Image component doesn't show up any changes when I activate it.
EDIT: It does. But it won't work if you have a Finished event in the action. (but you can add a wait for the crossfade to finish before continue)
«
Last Edit: December 01, 2018, 02:24:40 PM by Alatriste
»
Logged
stigma
Full Member
Posts: 218
Re: action to set or fade alpha for group of ui objects?
«
Reply #3 on:
November 29, 2024, 12:42:58 PM »
unable working
Logged
Omanah sur Steam :
https://store.steampowered.com/app/3662180/Omanah/
Broken Stylus
Beta Group
Hero Member
Posts: 824
Re: action to set or fade alpha for group of ui objects?
«
Reply #4 on:
December 04, 2024, 05:52:51 AM »
Here's a dirty trick and take it as a last resort option, but with an alpha of just one point above zero, users won't see anything but Unity will still see the element that's been faded out.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
action to set or fade alpha for group of ui objects?