Hello everyone. I’m currently trying to replicate some of the functionalities of the unreal editor inside the game mode. I have everything up and running and you can now select objects in the scene and transform them using the correct Gizmos. The only thing that is really bugging me is nailing down the gizmo material. I have looked through the engine code and the only materials I could find where the ones of a VREditor and they still don’t work exactly as I want.
This is an example image of what I currently have.
As you can see the outline of the objects is rendered on top of the gizmo which is not what I want. I want the gizmo to render on top of it.
I currently set the outline with the following node:
And the material I use is translucent with depth test disabled. I have tried different settings for the material: masked, additive, etc…, but nothing seems to render on top of the final outline.
Is there a way to achieve this? Better yet, is there a way to use the material that the editor itself uses for the gizmos?
Thanks in advamce!