简体   繁体   English

如何制作Android Unity游戏的中转GUI

[英]How can I make a layover GUI for Android Unity game

I have made an Android game using Unity, and now for the finishing touch I need a nice GUI, but unlike a GUI that just takes place in a different Unity scene, I would like it to just be a layover in the scene where the game is played. 我已经使用Unity制作了一个Android游戏,现在为了画龙点睛,我需要一个不错的GUI,但是不同于仅在另一个Unity场景中进行的GUI,我希望它只是在游戏场景中的一个中转站玩过的。 Basically you can see the game in the background, but there is a GUI with some buttons like setting and play. 基本上,您可以在后台看到游戏,但是有一个带有一些按钮(例如设置和播放)的GUI。 Say you click play, then the GUI would go away and the game would begin. 假设您单击“播放”,那么GUI将消失,游戏将开始。 Is this something that can be done in Unity? 这可以在Unity中完成吗? Any help would be greatly appreciated, thanks! 任何帮助将不胜感激,谢谢!

Bonus question - best way to make a good looking GUI, should I design it myself or should I buy from the Unity Asset Store? 奖励问题-制作美观的GUI的最佳方法,是我自己设计还是应该从Unity Asset Store购买? Pros and Cons of each? 各自的优缺点?

You just need to create the ui in the same scene as your game using the new unity ui system and the canvas object. 您只需要使用新的unity ui系统和canvas对象在与游戏相同的场景中创建ui。 Than for example on play button click you just aniamte the ui outside of the visible area or remove it from the canvas. 比起在播放按钮上单击,您只需将ui设置在可见区域之外,或者将其从画布中删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM