Unity 2018 Cookbook, Third Edition, published by Packt
This is the code repository for Unity 2018 Cookbook, published by Packt.
Over 160 recipes to take your 2D and 3D game and virtual reality development to the next level
With the help of the Unity 2018 Cookbook, you’ll discover how to make the most of the UI system, learn to work with external resources and files, and understand how to animate both 2D and 3D characters and game scene objects using Unity's Mecanim animation toolsets.
This book covers the following exciting features:
- Get creative with Unity’s shaders and learn to build your own shaders with the new Shader Graph tool
- Create a text and image character dialog with the free Fungus Unity plugin
- Explore new features integrated into Unity 2018, including TextMesh Pro and ProBuilder
- Master Unity audio, including ducking, reverbing, and matching pitch to animation speeds
- Work with the new Cinemachine and timeline to intelligently control camera movements
Chapters 16-19 wouldn't fit in the print edition, so we're making them available free to download! The PDFs are in the corresponding Github chapter folders (in a folder named bonus_chapter_PDF
), and are a great place to start if you want to explore the style of Unity game recipes you'll find the in book.
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter01.
The code will look like the following:
using UnityEngine;
using System.Collections;
public class ScrollZ : MonoBehaviour {
public float scrollSpeed = 20;
void Update () {
Vector3 pos = transform.position;
Vector3 localVectorUp = transform.TransformDirection(0,1,0);
pos += localVectorUp * scrollSpeed * Time.deltaTime;
transform.position = pos;
}
}
Following is what you need for this book:
With the following software and hardware list you can run all code files present in the book (Chapter 1-19).
Chapter | Software required | OS required |
---|---|---|
1-4,6-19 | Unity 2018.1 or later | Windows, Mac OS X (Any) |
5 | Unity 2018.1 or lagter + | |
an image editing application | ||
such as GIMP | Windows, Mac OS X (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [Click here to download it](Graphics Bundle Link).
Matt Smith is a computing academic at what will soon become the Technological University of Dublin, Ireland.
Matt started computer programming on a brand new ZX80 and submitted 2 games for his computing O-level exam. After nearly 10 years as a full-time student on a succession of scholarships, he gained several degrees in computing, including a PhD in computational musicology.
In 1985 Matt wrote the lyrics, and was in the band (and sang, sorry about that by the way) whose music appeared on the B-side of the audio cassette carrying the computer game Confuzion. Matt is a documentation author for the open source Fungus Unity project.
With his children he studies and teaches Taekwon-Do, and all three of them are beginning guitar lessons in 2018.
Click here if you have any feedback or suggestions.