更新时间:2021-08-20 16:51:54
封面
版权信息
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. Getting Started with Unity 4.x
Introduction
Installing Unity 4.x
Setting your preferences
Understanding and optimizing the User Interface
Saving assets created in Unity as Prefabs
Discovering Unity's content
Importing your own content
Importing Unity packages into your project
Importing custom packages into your project
Exporting custom packages from your project
Adding custom packages to Unity's quick list
Using the Project browser
Chapter 2. Using Cameras
Creating a picture-in-picture effect
Switching between multiple cameras
Customizing the lens flare effect
Making textures from screen content
Zooming a telescopic camera
Making an inspect camera
Creating particle effects using Shuriken
Displaying a mini-map
Chapter 3. Creating Maps and Materials
Creating a reflective material
Creating a self-illuminated material
Creating specular texture maps
Creating transparency texture maps
Using cookie textures to simulate a cloudy outdoor
Creating a color selection dialog
Combining textures in real time through the GUI
Highlighting materials at mouse over
Animating textures by looping through array of materials (for example simulated video)
Disabling culling for a material
Chapter 4. Creating GUIs
Displaying a digital clock
Displaying an analogue clock
Displaying a compass to show player direction
Displaying a radar to indicate relative locations of objects
Displaying images for corresponding integers
Displaying images for corresponding floats and ranges
Displaying a digital countdown timer
Displaying a countdown timer graphically (5 4 3 2 1 – blast off)
Displaying a countdown timer graphically as a pie-chart style clock
Creating a message that fades away
Displaying inventory texts for single object pickups
Displaying inventory icons for single object pickups
Managing inventories with a general purpose PickUp class
Controlling the scrollbar with the mouse wheel
Implementing custom mouse cursor icons
Chapter 5. Controlling Animations
Configuring a character's Avatar and Idle animation
Moving your character with Root Motion and Blend Trees
Mixing animations with Layers and Masks
Overriding Root Motion via script
Adding rigid props to animated characters
Making an animated character throw an object
Applying ragdoll physics to a character
Rotating the character's torso to aim
Chapter 6. Playing and Manipulating Sounds
Matching audio pitch to animation speed
Adding customizable volume controls
Simulating a tunnel environment with Reverb Zones
Preventing the AudioClip from restarting if already playing
Waiting for audio to finish before auto-destructing an object
Making a dynamic soundtrack
Chapter 7. Working with External Resource Files and Devices
Loading external resource files – by Unity Default Resources
Loading external resource files – by manually storing files in Unity's Resources folder
Loading external resource files – by downloading files from the Internet
Saving and loading player data – using static properties
Saving and loading player data – using PlayerPrefs
Saving screenshots from the game
Control characters in Unity with the Microsoft Kinect using the Zigfu samples
Animating your own characters with the Microsoft Kinect controller
Homemade mocap by storing movements from the Microsoft Kinect controller
Setting up a leaderboard using PHP/MySQL
Chapter 8. Working with External Text Files and XML Data
Loading external text files using the TextAsset public variable
Loading external text files using C# file streams
Saving external text files with C# file streams
Loading and parsing external XML files
Creating XML text data manually using XMLWriter
Creating XML text data automatically through serialization
Creating XML text files – saving XML directly to text files with XMLDocument.Save()
Chapter 9. Managing Object States and Controlling Their Movements