BlisterUI.Widgets.RectButton.SetActive C# (CSharp) Method

SetActive() public method

public SetActive ( bool b, Vector2 m ) : void
b bool
m Vector2
return void
        public void SetActive(bool b, Vector2 m)
        {
            if(isHovered != b) {
                isHovered = b;
                if(isHovered) {
                    Width = optActive.Width;
                    Height = optActive.Height;
                    Color = optActive.Color;
                    if(OnMouseEntry != null)
                        OnMouseEntry(this, m);
                }
                else {
                    Width = optInactive.Width;
                    Height = optInactive.Height;
                    Color = optInactive.Color;
                    if(OnMouseExit != null)
                        OnMouseExit(this, m);
                }
            }
        }