E-Book, Englisch, 780 Seiten
Smith / Ferns / Murphy Unity Cookbook
5. Auflage 2023
ISBN: 978-1-80512-913-4
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection
Over 160 recipes to craft your own masterpiece in Unity 2023
E-Book, Englisch, 780 Seiten
ISBN: 978-1-80512-913-4
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection
No detailed description available for "Unity Cookbook".
Fachgebiete
Weitere Infos & Material
Table of Contents - Displaying Data with Core UI Elements
- Responding to User Events for Interactive UIs
- Inventory and Advanced UIs
- Playing and Manipulating Sounds
- Textures, Materials and 3D objects
- Creating 3D environments with Terrains
- Creating 3D geometry with ProBuilder
- 2D Animation and Physics
- Animated Characters
- Saving and Loading Data
- Controlling and Choosing Positions
- Navigation Meshes and Agents
- Cameras, Lighting, and Visual Effects
- Shader Graphs and Video Players
- Particle Systems and Other Visual Effects
- Mobile Games and Applications
- Augmented Reality (AR)
- Virtual and Extended Reality (VR/XR)
- Advanced Topics – Gizmos, Automated Testing, and More
Contents
Preface Who this book is for What this book covers Technical requirements to get the most out of this book Get in touch Displaying Data with Core UI Elements Creating a Font Asset file for use with TextMeshPro Getting ready How to do it... How it works... Displaying a “Hello World” UI text message Getting ready How to do it... How it works... There’s more... Styling substrings with rich text Exploring the TextMeshPro Examples and Extras Displaying a digital clock Getting ready How to do it… How it works... Displaying a digital countdown timer Getting ready How to do it... How it works... There’s more... Automatically add components with [RequireComponent(...)] Creating a message that fades away Getting ready How to do it... How it works... Displaying an image Getting ready How to do it... How it works... There’s more... Working with 2D sprites and UI Image components See also Further reading Learn more on Discord Responding to User Events for Interactive UIs Creating a UI Button to reveal an image Getting ready How to do it... How it works... There’s more... Creating a UI Button to move between scenes How to do it... How it works... There’s more... Animating UI Button properties on mouseover How to do it... How it works... Organizing image panels and changing panel depths via buttons Getting ready How to do it... How it works... There’s more... Moving up or down by just one position, using scripted methods Displaying the value of an interactive UI Slider How to do it... How it works... Displaying a countdown timer graphically with a UI Slider Getting ready How to do it... How it works... Setting custom mouse cursors for 2D and 3D GameObjects Getting ready How to do it... How it works... Setting custom mouse cursors for UI controls Getting ready How to do it... How it works... Interactive text entry with Input Field Getting ready How to do it... How it works... There’s more... Detecting interactions with a single Toggle UI component Getting ready How to do it... How it works... Creating related radio buttons using UI Toggles Getting ready How to do it... How it works... Creating text UI Dropdown menus How to do it... How it works... Creating image icon UI Dropdown menus Getting ready How to do it... How it works... Displaying a radar to indicate the relative locations of objects Getting ready How to do it... How it works... The Start() method The Update() method The FindAndDisplayBlipsForTag(...) method The CalculateBlipPositionAndDrawBlip (...) method The NormalizedPosition(...) method The CalculateBlipPosition(...) method The DrawBlip() method There’s more... Further reading Inventory and Advanced UIs Creating a simple 2D mini-game – SpaceGirl Getting ready How to do it... How it works... Displaying single object pickups with carrying and not-carrying text Getting ready How to do it... How it works... The PlayerInventory script class The PlayerInventoryDisplay script class There’s more... Collecting multiple items and displaying the total number carried Alternative – combining all the responsibilities into a single script Displaying single-object pickups with carrying and not-carrying icons Getting ready How to do it... How it works... Displaying multiple pickups of the same object with multiple status icons Getting ready How to do it... How it works... There’s more... Revealing icons for multiple object pickups by changing the size of a tiled image How it works... Using panels to visually outline the inventory UI area and individual items Getting ready How to do it… How it works... Creating a C# inventory slot UI to display scripted components Getting ready How to do it... How it works... There’s more... Modifying the game for a second inventory panel for keys Displaying multiple pickups of different objects as a list of text via a dynamic List<> of scripted PickUp objects ...