示例#1
0
    public void SetActive(bool show)
    {
        _image.canvasRenderer.cull = !show;
        if (show)
        {
            _image.Rebuild(CanvasUpdate.PreRender);
        }

        if (_videoItem != null)
        {
            _videoItem.SetActive(show);
        }
    }