Scaling UI correctly

Is there anyway I can set a property or a script so that I can scale a UI on all devices correctly?

Maybe this might help: Designing UI for Multiple Resolutions | Unity UI | 1.0.0