Mastering Unity scripting : learn advanced C# tips and techniques to make professional-grade games with Unity /


Alan Thorn.
Bok Engelsk 2015 · Electronic books.
Omfang
1 online resource (380 p.)
Utgave
1st edition
Opplysninger
Includes index.. - Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Unity C# Refresher; Why C#?; Creating script files; Instantiating scripts; Variables; Conditional statements; The if statement; The switch statement; Arrays; Loops; The foreach loop; The for loop; The while loop; Infinite loops; Functions; Events; Classes and object-oriented programming; Classes and inheritance; Classes and polymorphism; C# properties; Commenting; Variable visibility; The ? operator; SendMessage and BroadcastMessage; Summary; Chapter 2: Debugging. - Chapter 6: Working with MonoLists and collections; The List class; The Dictionary class; The Stack class; IEnumerable and IEnumerator; Iterating through enemies with IEnumerator; Strings and regular expressions; Null, empty strings, and white space; String comparison; String formatting; String looping; Creating strings; Searching strings; Regular expressions; Infinite arguments; Language Integrated Query; LINQ and regular expressions; Working with Text Data Assets; Text Assets - static loading; Text Assets - loading from the local files; Text Assets - loading from the INI files. - Code folding in MonoDevelop with #region and #endregionUsing EventManager; Alternative with delegates; MonoBehaviour events; Mouse and tap events; Application focus and pausing; Summary; Chapter 5: Cameras, Rendering, and Scenes; Camera gizmos; Being seen; Detecting the object visibility; More on the object visibility; Frustum testing - renderers; Frustum testing - points; Frustum testing - occlusion; Camera vision - front and back; Orthographic cameras; Camera rendering and postprocessing; Camera shake; Cameras and animation; Follow cameras; Cameras and curves; Camera paths - iTween; Summary. - Compilation errors and the consoleDebugging with Debug.Log - custom messages; Overriding the ToString method; Visual debugging; Error logging; Editor debugging; Using the profiler; Debugging with MonoDevelop - getting started; Debugging with MonoDevelop - the Watch window; Debugging with MonoDevelop - continue and stepping; Debugging with MonoDevelop - call stack; Debugging with MonoDevelop - the Immediate window; Debugging with MonoDevelop - conditional breakpoints; Debugging with MonoDevelop - tracepoints; Summary; Chapter 3: Singletons, Statics, GameObjects, and the World; The GameObject. - Component interactionsGetComponent; Getting multiple components; Components and messages; GameObjects and the world; Finding GameObjects; Comparing objects; Getting the nearest object; Finding any object of a specified type; Clearing a path between GameObjects; Accessing object hierarchies; The world, time, and updates; Rule #1 - frames are precious; Rule #2 - motion must be relative to time; Immortal objects; Understanding singleton objects and statics; Summary; Chapter 4: Event-driven Programming; Events; Event management; Starting event management with interfaces; Creating an EventManager. - Text Assets - loading from the CSV files. - Mastering Unity Scripting is an advanced book intended for students, educators, and professionals familiar with the Unity basics as well as the basics of scripting. Whether you've been using Unity for a short time or are an experienced user, this book has something important and valuable to offer to help you improve your game development workflow.
Emner
Sjanger
Dewey
ISBN
1-78439-056-9

Bibliotek som har denne