Changer UI element order

Hi, I’m trying to make UI element above other at runtime using the sorting order.
There is my scene. I have a hand with 6 slot for cards.

When the slot are filled I activate a gameObject wich is the cards.

8725089--1180041--upload_2023-1-12_15-32-25.png

When my mouse is over a card, this card is scaled UP and move.
I also want to make this card on front of the other.

For that I added a Image and a canvas to the card GameObject.

And a script to change the sorting order when the mouse is over.
The problem is when there is a canvas attached to that object, it doesn’t display at all in the scene.
PS the Event system don’t see it at all neither, it see the empty behind.
8725089--1180059--upload_2023-1-12_15-41-36.png

While in the editor I can see it :
8725089--1180053--upload_2023-1-12_15-37-9.png

If a just remove the canvas I see the card in the hand but I can’t change the layer order …
Do you have Idea of what’s could be wrong?

Making me crazy :frowning:

Thanks for your help.

Hi. It doesn’t seem like you are using UIToolkit. I think you’d have better lock in this forum section: Unity Engine - Unity Discussions