Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to remove raycast on a button unity

public class RaycastRemover : MonoBehaviour
{
    public TextMeshProUGUI button;
    void Start()
    {
        button.raycastTarget = false;
    }
}
 
PREVIOUS NEXT
Tagged: #remove #raycast #button #unity
ADD COMMENT
Topic
Name
9+8 =