Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello there, You can always use the world space - overlay to put the specific canvas for the turret however you like. If you plan on having the UI always facing the camera you can create a script that will rotate the canvas depending on the forward vector of the camera. I do not know if it is the most efficient (or if that is what you want to achieve), but it is the first thing that comes to my head. Hope it helps

Hi, I appreciate your response! I currently am using the world space render mode for the canvas, that way I set the position of the canvas to be where the turret is. But since it is in 3D space other 3D objects will be rendered in front of the canvas if they are between it and the camera. Here is a demonstration of what I was able to do with TMP text that I would like to do with the canvas:

The text, although its position is below the terrain in the world, is still rendered in front of the terrain, causing it to be visible under any circumstances. I was able to achieve this with a shader option, but you can't use shaders with UI elements. (at least not that I know of)


But I do think your idea of having the text always facing the camera can work as a work-around! I'll use that idea if I can't figure anything else out. Thanks for the help!