Thursday, 29 August 2019

Gaming 29/8

HUD/UI

All maps must be square and in multiples of 1024 ie 1024, 2048 etc.

Keep the background image separate from the buttons and menu elements. 

Step 1 - insert canvas from Game object menu. this connects to the camera and moves with the camera over the full area of the game. The canvas is the base for the HUD overlay. 

Rect Transform component is the anchor for the item, where abouts on the screen that item will stay regardless of camera movement. Hold alt when changing the position of the anchor. Each new part of the overlay is an image under the UI menu.



When changing button colours, use the Button (script) box not the image box.


Add animator component to animate the button, make sure its not on text layer unless you want the text to have a different animation cycle. Be aware of animating in a 3D space, as buttons dont work from the back.

Use the sort order to control where each layer goes. The higher the number, the earlier it will be rendered.




No comments:

Post a Comment

BSA702 14/7

 arrays and lists Quick and Easy Galaxy painting  great tutorial I found when I was looking for a background for my pitch tomorrow. I want t...