Unity 2017 Mobile Game Development: Build, deploy, and monetize games for Android and iOS with Unity by John P. Doran

Unity 2017 Mobile Game Development: Build, deploy, and monetize games for Android and iOS with Unity by John P. Doran

Author:John P. Doran [Doran, John P.]
Language: eng
Format: epub
Tags: COM051460 - COMPUTERS / Programming / Mobile Devices, COM012040 - COMPUTERS / Programming / Games, COM051310 - COMPUTERS / Programming Languages / C#
Publisher: Packt Publishing
Published: 2017-11-30T00:00:00+00:00


This will add 5 pixels of padding in each direction within all of the children of the layout group.

Now, duplicate this button twice and change the text to Restart and Main Menu.

Next, right-click on the Panel object and select UI | Text. Change the object's text to Paused and change its alignment to be centered and increase the size until it's somewhere you like. Note how the order in which the child is changes the order it is displayed. With that in mind, drag the Text object to the top:

This looks nice, but there's also a lot of spacing here, and we can't see the entirety of the Main Menu on this button. So, if we'd like, we can instead condense the contents of our menu to just fit what we have there.

To do this, we can go to Hierarchy and select the Pause Menu Contents object and then add a Content Size Fitter component. Once it is added, we will change the Horizontal Fit and Vertical Fit to Preferred Size.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.