TILEMAP覆盖浮动文本Unity 2D

发布于 2025-02-09 22:43:20 字数 293 浏览 1 评论 0原文

因此,我想每次打开一个箱子时都会显示浮动文字,这表明您赚了多少硬币。我使用tilemaps创建了级别。当我创建浮动文本时,出现了问题,基本上是由TILEMAP覆盖的,因为如果我将其移出水平,我可以看到它,否则就不会。我尝试通过使用图层来解决此问题,但我无法设法使其正常工作。有人知道如何帮助我吗?

,您可以看到foto 文本的轮廓可见,但是在播放模式下,您可以看到看不到。

So I want to display a floating text everytime the player opens a chest, that indicates how many coins you earned. I created the level using tilemaps. The problem arises when I created the floating text, basically it's covered by the tilemap, because if I move it out of the level I can see it, otherwise not. I tried fixing this problem by using layers, but I can't manage to make it work. Does anyone know how to help me?

As you can see by the foto the outline of the text is visible, but in play mode you can't see it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2025-02-16 22:43:20

您可能应该在tileMap渲染器中使用层的顺序,并将其设置为负值。对不起,如果它不起作用,我对Unity是新手。

You should probably use the order in layer in the tilemap renderer and set it to a negative value.Im sorry if it doesnt work I am new to unity.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文