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;
}

Leave a Reply