What's the difference between widget "Set Visibility" function and Visibility variable?

Hi, what’s the difference between using one or the other when setting visibility of a widget?
Thanks.

Hi,

The set function set the visibility variable.

I suggest to use the function instead of the variable, since the function broadcast the visibility, and maybe in the future they can make the variable private.

Also, if you look the code, you will see the SetVisibility call another function named SetVisibilityInternal, which they may use to perform some internal extra action.

Hope that helps,

Bye.

1 Like