实例介绍
Unity.5.x.Animation.Cookbook.2016.5.pdf
Unity 5.x Animation Cookbook Copyright o 2016 Packt Publishing All rights reserved no part of this book may be reproduced stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this boo Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: May 2016 Production reference: 1160516 Published by Packt Publishing Ltd ivers ace 35 Livery street Birmingham b3 2PB UK ISBN978-1-78588-391-0 www.packtpub.com Credits Author Copy editor Maciei szczesnik Sameen Siddiqui Reviewer Project Coordinator Grzegorz mazur Bijal patel Commissioning editor Proofreader A marana Banerjee Safis Editing Acquisition Editor ndexer Aaron lazar Rekha nair Content Development editor Production Coordinator Prashanth g rao Aparna Bhagat Technical editor Cover work Murtaza Tinwala Aparna bhagat About the author Maciej Szczesnik is an experienced game designer and Unity developer, specializing in gameplay and combat mechanics. His daily responsibilities include motion capture session planning and coordination, creating animation graphs and state machines, and aI design and implementation He started his professional career in 2004 at CD Projekt RED-the company best known for the critically acclaimed The Witcher series. Maciej had key roles in the Witcher games, being lead gameplay designer and lead combat designer. He also worked at 1l bit studios, another well-known Polish game development company, famous for the This War Of Mine game. Maciej gave three talks at the game Developers Conference and Game Developers Conference Europe. He is also a lecturer at Warsaw Film School, teaching Unity and technical aspects of animation as part of the game development Ba course Id like to thank my wife for her support, Kacper Kwiatkowski and grzegorz Mazur from Vile monarch for their reviews, Marek Ziemak and Piotr Tomsinski for inspiring discussions about games and animations, and ichat Pienkowski and marcin lwanek fo countless rPg and tabletop game sessions. I'd also like to thank all my friends and former coworkers from 11 bit studios and CD Projekt red for helping me develop my skills about the reviewer Grzegorz Mazur is a programmer who graduated in information technology from Warsaw University of Technology. He is currently co-boss and technical director at Vile monarch Previously he worked for 11 bit studios where he was lead programmer of This war of Mine and Sleepwalker's Journey. He specializes in gameplay and ai programming and is a teacher at warsaw Film School. He is also an amateur musician and board game enthusiast Www.pacKtpub.com Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.packtpub.coM e Books discount offers and more Did you know that Packt offers e Book versions of every book published with PDF and epubfilesavailableYoucanupgradetotheebookversionatwww.packtpub.comandasa print book customer, you are entitled to a discount on the e Book copy. Get in touch with us at customercare@packtpub com for more details Atwww.packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfora range of free newsletters and receive exclusive discounts and offers on packt books and ebooks PACKTLIB https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your it questions? PacktLib is packt's online digital book library. Here, you can search, access, and read Packt,s entire library of books Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Free access for packt account holders Get notified! Find out when new books are published by following @PacktEnterprise on Twitter or the Packt Enterprise Facebook page Table of contents Preface Chapter 1: Working with Animations Introduction Importing skeletal animations Getting ready How to do it 778881 How it works Theres more 11 Configuring generic and humanoid rigs 12 Getting ready 12 How to do it 13 HoWⅰ t works 17 There' s more 18 Creating and assigning an Animator Controller 19 Getting ready 20 How to do it 20 How it works 21 See also 22 Creating animation transitions in Animator Controller 23 Getting ready 23 How to do it 23 How it works 24 There's more 26 Using parameters to control the animation flow 27 Getting ready 27 How to do it 27 How it works 29 There's more 30 Using animations from multiple assets 31 Getting ready 31 How to do it 32 How it works 33 Looping, mirroring and offsetting the animations 33 Getting ready 33 How to do it 33 How it works 34 There' s more 34 Adjusting the playback speed of animations 35 Getting read 35 How to do it 35 How it works 35 There' s more 36 Using override animator controllers to animate different types of characters 37 Getting ready 37 How to do it 37 How it works 38 Importing object animation from a 3D package 39 Getting ready 39 How to do it 39 How it works 40 Chapter 2: Working with the Animation view 41 Introduction 41 Using the animation View to create a flickering light 42 Getting ready 42 How to do it 42 How it works 44 There's more 45 Blending light colors with the animation view and the Animator Controller 46 Getting ready 46 How to do it 46 How it works 47 Animating an object's world position-creating a moving platform 48 Getting ready 48 How to do it 48 How it works 50 There's more 51 Animating object's local position -creating automatic doors 52 Getting read 53 How to do it 53 How it works 58 See also 59 Using the Hierarchy to animate local rotation-creating an orbiting planet 59 Getting ready 59 How to do it 60 How it works 61 There' s more 62 Animating triggers-creating a death trap 62 Getting ready 62 How to do it 63 How it works 67 Theres more 67 Creating an elevator triggered by player input 68 Getting ready 68 How to do it 68 How it works There' s more 72 Chapter 3: 2D and User Interface Animation 74 Introduction 74 Exporting a 2D sprite animation from a 3D package 75 Getting ready 75 How to do it 75 Howⅰ t works. 78 There' s more See also 79 Creating a frame-by -frame sprite animation with the Animation View 80 Getting ready 80 How to do it 80 How it works Creating a 2D sprite doll animation with the Animation view 82 Getting ready 82 How to do it 83 How it works 86 Using the Animator Controller to play sprite animations 86 Getting ready 86 How to do it 86 How it works 88 There' s more 89 Creating a fade out -fade in transition with the Animation view 89 Getting ready 89 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论