push-pop / Unity-MVVM

Lightweight MVVM Framework for Unity3D
MIT License
331 stars 28 forks source link

"Hide" does not hide #61

Open AAAYaKo opened 3 years ago

AAAYaKo commented 3 years ago

Maybe I didn't understand something, but I think it isn't right

                case Visibility.Hidden:
                    base.gameObject.SetActive(value: true);
                    this.CancelAnimation();
                    this.FadeOut(null, _fadeTime);
                    break;

Maybe it should be false here

AAAYaKo commented 3 years ago

*That from decompiler

push-pop commented 3 years ago

@AAAYaKo Hidden is a state where the gameobject is active but hidden. This can be useful if you still want a layout to stay the same (i.e. with VerticalLayoutGroup) but have certain elements not shown

push-pop commented 3 years ago

Do you have an example project with Unexpected behaviour?