Mastering UI Development with Unity : an in-depth guide to developing engaging user interfaces with Unity 5, Unity 2017, and Unity 2018.
For a great game, it needs a great user interface that shows the game settings and the right information to the player. Unity allows you to create complex and great looking user interfaces to give your games that professional look and feel. This book will help you realize the full potential of the p...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Designing User Interfaces; UI and GUI; Four game interface types; Layout; Color schemes; Interface metaphors; Resolution and aspect ratio; Changing the aspect ratio and resolution of the game view; Building for a single resolution; Resetting the resolution; Method 1
- PlayerPrefs. DeleteAll(); Method 2
- Deleting PlayerPref files; Building for a single aspect ratio; Setting the orientation; Summary; Chapter 2: Canvases, Panels, and Basic Layouts; UI Canvas; Rect Transform component.
- Canvas componentScreen Space-Overlay; Screen Space-Camera; World Space; Canvas Scalar component; Constant Pixel Size; Scale with Screen Size; Constant Physical Size; World; Graphic Raycaster component; Canvas Renderer component; UI Panel; Rect Transform; Rect Tool; Positioning modes; Rect Transform component; Rect Transform edit modes; Anchor and Pivot Point; Canvas Group component; Introducing UI Text and Image; Examples; Laying out a basic HUD; Placing a background image (2D game); Setting up a basic pop-up menu; Summary; Chapter 3: Automatic Layouts; Types of Automatic Layout Groups.
- Horizontal Layout GroupPadding; Spacing; Child Alignment; Control Child Size; Child Force Expand; Vertical Layout Group; Grid Layout Group; Cell Size; Start Corner and Start Axis; Constraint; Layout Element; Ignore Layout; The Width and Height properties; Min Width and Height; Preferred Width and Height; Flexible Width and Height; Fitters; Content Size Fitter; Aspect Ratio Fitter; Examples; Laying Out an HUD Selection Menu; Laying Out a Grid Inventory; Summary; Chapter 4: The Event System and Programming for UI; Accessing UI elements in code; UnityEngine. UI namespace; UI variable types.
- The Event SystemEvent System Manager; First Selected; Send Navigation Events; Drag Threshold; Input Manager; Input functions for buttons and key presses; GetButton; GetAxis; GetKey; GetMouseButton(); Input Modules; Standalone Input Module; Hololens Input Module; Base Input Module/Pointer Input Module; Event Trigger; Event Types; Pointer events; Drag and Drop events; Selection events; Other events; Adding an action to the event; Event inputs; Raycasters; Graphic Raycaster; Other Raycasters; Examples; Showing and hiding pop-up menus with keypress; Using KeyCode with the Inventory Panel.
- Using Input Manager with the pause panelPausing the game; Dragging and dropping inventory items; Summary; Chapter 5: Buttons; UI Button; Button component; Transitions; None; Color Tint; Sprite Swap; Animation; Navigation; Examples; Navigating through Buttons and using First Selected; Laying out the Buttons; Setting the explicit navigation and First Selected; Loading scenes with Button presses; Button Animation Transitions; Mute buttons with image swap; Summary; Chapter 6: Text, Images, and TextMesh Pro-Text; UI Text; Text component; The Text and Character properties; Paragraph properties.