Show Sprite 2D behind a 3D Object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By usurun

I have made a 2D Sprite inside a 3D space, but now it will always show at the front, even though other figures are in front of it. How can I make the sprite show behind a specific 3D object.

Did u try making the 2D node a child of the 3D one ?
Can you share your scene tree ?

GameVisitor | 2019-08-31 06:16

It is:

  Obj (3D)
    Sprite (2D Has to be behind if Character is in front)
  Character (3D)
  Level (3D)
  UI (Control)

usurun | 2019-08-31 11:55

:bust_in_silhouette: Reply From: GameVisitor

The 2D must be the child of the character then use this property:

:bust_in_silhouette: Reply From: GameVisitor

On Second thought, better to follow 3D in 2D sample, by using a ViewPortcontainer.

This way I managed to load a 3D scene over an opaque 2D texture