Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1)我目前正在制作 2d 坦克游戏。我需要制作面板,在那里我可以绘制有关坦克等的信息。最好的方法是什么?我需要制作 2 个视口(1 个用于游戏,1 个用于面板)还是什么?
您可以制作一个固定区域来显示您的 gui/hud 中的信息。或者,您可以在将鼠标悬停在文本上时弹出文本。因此,找到鼠标所在的位置,如果它悬停在精灵上,则开始在光标位置绘制文本。