showVideoContaier()

private void showVideoContaier(){
        CanvasGroup cg = gameObject.GetComponent();
        if (cg != null) {
            cg.alpha = 1f;
            cg.blocksRaycasts = true; // Prevents UI from blocking raycasts
            cg.interactable = true;   // Prevents UI from receiving input
        }

        GraphicRaycaster gr = gameObject.GetComponent();
        if (gr != null) gr.enabled = true;
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *