I have created 2 canvas on a single scene (let’s say canvas A and canvas B).
Canvas A is the main one, inside here I added a button. Can I show canvas B and its related content through the button click from canvas A?
Yes, UnityEngine.UI.Button has an OnClick even system you can connect. Select the button in Canvas A, in the Button component there will be OnClick() field. Click on the + sign a new object field will be exposed. Drag the Canvas B into there. On the Dropdown go to GameObject-> SetActive and make sure the boolean toggle is on. Hit the plus sign again on the Button in Canvas A and do the same except with Canvas A in the new field and make sure the boolean is off. This way when you click on the button it will turn off Canvas A and turn on Canvas B.
wow that is correct!
anyway, what if I intended to make the canvas B a transparent one, so the canvas A is still enabled but when clicked, the canvas B (with transparency enabled) will appear on top of the canvas A. Any idea how?