Unity 3.x Scripting
Volodymyr. Gerasimov
Bok Engelsk 2012 · Electronic books.
Annen tittel | |
---|---|
Utgitt | Birmingham : : Packt Publishing, , 2012.
|
Omfang | 1 online resource (291 p.)
|
Opplysninger | Description based upon print version of record.. - Cover; Copyright; Credits; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Diving into Scripting; Downloading and installing assets for this book; Getting started with the game; Available Character Controllers; Interactive objects; Triggers; Buttons; Base button script; Activating platform status; Explosion box; The Update function; The BOOM function; Downloading the Detonator package; Pressing the button; Dynamic objects; Moving boxes; Triggered object; Moving platform; Moving the character with the platform; Summary. - Applying projectile fixesTethering and soft body; Tethering; Creating a tether; Creating assets; Tether manager; Creation of tether; The StickySegment script; Tether scripts overview; Summary; Chapter 4: Drag-and-Drop Inventory; GUI basics; GUI.Box; GUI.Button; GUI.Label; GUI.TextField; GUI.TextArea; GUI.Toggle; GUI.Toolbar and GUI.SelectionGrid; GUI.HorizontalSlider and GUI.VerticalSlider; GUI.HorizontalScrollBar and GUI.VerticalScrollBar; GUI.BeginGroup and GUI.EndGroup; GUI.BeginScrollView, GUI.EndScrollView, and ScrollTo; Other GUI classes; Drag-and-drop inventory; Basics. - Chapter 2: Custom Character ControllerCreating a controllable character; Custom Character Controller; Setting up the project; Creating movement; Manipulating character vector; Register input from the user; The Rigidbody component; Jumping; User input verification; Raycasting; Additional jump functionality; Running; Cameras; Camera scripting; Creating camera script; Creating an enumeration list; Writing functions; Writing camera switching controls; Character movement and camera positioning; Updating camera type changing; Influencing camera with a mouse; Clamping angles; Camera's late update. - Displaying items. - Inventory slots and draggable objectsWorking with GUI windows; Inventory slots; Patching the inventory; Character customization; 3D character avatar; Dealing with a camera; Adjusting the camera; Window dragging limits; Customization; Setting up items; Adding items; Modifying character; Reloading and inventory; Finishing adjustments; Summary; Chapter 5: Dynamic GUI; Radial health display; The Health script; Health display script; Revisiting the Health script; Hooking up objects to Inspector; Creating items; The Change_Item script; Setting up the code; Changing items; Addition and removal. - Rotating character with a cameraAnimation controls; Playing simple animations; Start function versus Awake function; Animation component and playing speed; Animation scripting; Walk, run, and idle animations; Summary; Chapter 3: Action Game Essentials; Programming weapons and pickables; Creating the base; Programming the weapon; The Shooting function; Shooting cooldown; Alternative shooting function; Advanced animation system; Working of an animation; Animation mixing; Animation script overview; Weapon pickup; Adding ammo and health pickups; Creating a treasure chest. - Write efficient, reusable scripts to build custom characters, game environments, and control enemy AI in your Unity game with this book and ebook.
|
Emner | |
Sjanger | |
Dewey | |
ISBN | 9781849692304
|