Esempio n. 1
0
    public void SetTransparent(bool transparent)
    {
        this.isTransparent = transparent;
        SetCameraBackground(transparent);
        uniWin.EnableTransparent(transparent);

        // 少しサイズを変更して戻してみる
        Vector2 size = uniWin.GetSize();

        uniWin.SetSize(size - Vector2.one);
        uniWin.SetSize(size);

        UpdateFocusable();
    }
Esempio n. 2
0
    /// <summary>
    /// 透明化状態を切替
    /// </summary>
    /// <param name="transparent"></param>
    public void SetTransparent(bool transparent)
    {
        //if (_isTransparent == transparent) return;

        _isTransparent = transparent;
        SetCameraBackground(transparent);

        if (uniWin != null)
        {
            uniWin.EnableTransparent(transparent);
        }
        UpdateClickThrough();
        StateChangedEvent();
    }