Hi,
I have two canvases in my project:
- Main Canvas with a scaler set to Scale with Screen Size
- Secondary Canvas, for some touch-based UI components, with a scaler set to Constant Physical Size in inches
For mouse-keyboard builds all UI objects are on Main Canvas.
For touch-screen builds some UI objects are on Secondary Canvas.
In some custom layout code, I need to make sure a UI object on Main Canvas doesn’t overlap an object on Secondary Canvas.
How can I normalize the position of the object in Secondary Canvas into Primary Canvas coordinate space for comparison?
Thanks.