I don't quite understand you here... raycast twice for UI and screen? What does "make UI touch" mean?
UICamera is what controls which cameras receive events. If you remove this script from a camera, objects that are drawn by that camera won't be receiving events. If you only have UICamera on the camera that draws your UI, then only UI elements will receive events.