OpenPanel() and UI layer/canvas
Posted: Mon Oct 26, 2020 7:08 am
Hi !
Lately, I've been working on the Dialogue UI for my game and I've had to try a lot of things to customize it for Dialogue System. I've been struggling a lot with sorting the UI layers.
To sort out the gameobject UI, I wanted to use the Canvas component: unfortunately, it prevented the continue button (transparent and extended over the whole screen to switch from dialog on click), so I had to move the gameobjects order. Some elements are no longer in the right panel groups, but the layer order rendering is correct.
However, when the reponse menu panel opens in game, the subtitle panel is still displayed behind the response menu panel. I don't know if this is normal.
So I wanted to use the OpenPanel() command to close my "Dialogue Panel" panel (knowing that my panel menu response is not in it) but it doesn't work cause i can't target the command OpenPanel() on the gameobject i want.
To simplify, my two questions are:
1. Is it possible to sort the order of the UI gameobjects with the Canvas component, without preventing the continue button to work?
2. Is it possible to use the OpenPanel() command to target a particular panel (example: OpenPanel(Dialog Panel,close)) ?
Thank you in advance and sorry if it is not clear, I have a little trouble to express myself in English!
Lately, I've been working on the Dialogue UI for my game and I've had to try a lot of things to customize it for Dialogue System. I've been struggling a lot with sorting the UI layers.
To sort out the gameobject UI, I wanted to use the Canvas component: unfortunately, it prevented the continue button (transparent and extended over the whole screen to switch from dialog on click), so I had to move the gameobjects order. Some elements are no longer in the right panel groups, but the layer order rendering is correct.
However, when the reponse menu panel opens in game, the subtitle panel is still displayed behind the response menu panel. I don't know if this is normal.
So I wanted to use the OpenPanel() command to close my "Dialogue Panel" panel (knowing that my panel menu response is not in it) but it doesn't work cause i can't target the command OpenPanel() on the gameobject i want.
To simplify, my two questions are:
1. Is it possible to sort the order of the UI gameobjects with the Canvas component, without preventing the continue button to work?
2. Is it possible to use the OpenPanel() command to target a particular panel (example: OpenPanel(Dialog Panel,close)) ?
Thank you in advance and sorry if it is not clear, I have a little trouble to express myself in English!