当前位置:网站首页>Unity animation day05
Unity animation day05
2022-07-04 15:28:00 【@Night Charm】
Commonly used API function :
bool isPlay = animation.isPlaying;
bool isPlay = animation.IsPlaying(" Animation name ");
animation.Play(" Animation name ");
animation.PlayQueued(" Animation name ");
animation.CrossFade(" Animation name ");
animation[" Animation name "].speed = 5;
animation[" Animation name "].wrapMode = WrapMode.PingPong;
animation[" Animation name "].length;
animation[" Animation name "].time;
Animation View:
1、 Animation view allows you to create and modify animation clips directly (Animation Clips)
2、 Show animation view :window -- Animation
Create animation clips :
1、 Add... To an object Animation Components
2、 Create clips in the animation view
Record animation clips :
1、 Recording steps :
Click the record button , Start recording animation
Add key Add Property, Select the component type
Select keys , Adjust the time point
stay Scene or Inspector Panel settings properties
Click the record button , End recording animation
2、 The properties of any component and material can be animated , Even public variables of custom script components .
Timeline :
1、 You can preview or modify animation clips by clicking anywhere on the timeline
2、 The number is displayed in seconds and frames ( for example :1:30 Express 1 The second and 30 frame )
3、 Use the buttons to jump to the previous or next keyframe , You can also type a specific number to jump directly to the frame .
Animation Component properties :
Animation Animation: The current animation
Animation list Animations: A list of animations that can be accessed from scripts
Auto play Play Automatically: The animation that plays automatically when you start the game
Animation clip attributes :
Package mode Wrap Mode: How to deal with the animation .
-- Default Default, Use the processing methods in animation clips
-- Play it once Once, Stop when the playback ends ;
-- Loop Playback Loop, Play again after the end ;
-- Ping Pong play PingPong, Play backward after the end ;
-- Fixed permanent Clamp Forever, Play the last frame forever after the end ;
边栏推荐
- LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
- [Dalian University of technology] information sharing of postgraduate entrance examination and re examination
- Common API day03 of unity script
- 左右对齐!
- Hexadecimal form
- C implementation defines a set of intermediate SQL statements that can be executed across libraries
- 在芯片高度集成的今天,绝大多数都是CMOS器件
- Redis publish and subscribe
- Temperature control system based on max31865
- 开源人张亮的 17 年成长路线,热爱才能坚持
猜你喜欢
数据湖治理:优势、挑战和入门
Guitar Pro 8win10 latest guitar learning / score / creation
Luo Gu - some interesting questions 2
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
暑期复习,一定要避免踩这些坑!
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
Flutter reports an error no mediaquery widget ancestor found
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
随机推荐
Redis的4种缓存模式分享
In today's highly integrated chips, most of them are CMOS devices
TechSmith Camtasia studio 2022.0.2 screen recording software
Implementation of web chat room
js平铺数据查找叶子节点
深入JS中几种数据类型的解构赋值细节
Unity脚本介绍 Day01
一篇文章学会GO语言中的变量
都在说DevOps,你真正了解它吗?
%f格式符
Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Redis publish and subscribe
Redis sentinel mode realizes one master, two slave and three Sentinels
2022年九大CIO趨勢和優先事項
暑期复习,一定要避免踩这些坑!
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
压力、焦虑还是抑郁? 正确诊断再治疗
谈SaaS下如何迅速部署应用软件
.Net之延迟队列