南瓜鬼脸 (Unity)
来源:互联网 发布:纪念碑谷mac版 编辑:程序博客网 时间:2024/05/15 10:48
这几天做了一个特别简单的案例,万圣节南瓜鬼脸。
怎么说呢,我第一次接触Unity,给我的感觉还不错。从这个案例中我学到了很多东西。
我要做一个总结
万圣节鬼脸的建立:
1:创建sprite。<也就是导入sprite>
2:整理画面,调整镜头。
3:让bat抖动,接着对所有的sprite加入淡入效果,最后就是流程控制。<自己也当了导演!>
粒子系统
学会了材质的创建,加入,以及粒子各个功能的调整。
代码:
Vector3<官网上找的>
Descriptation
Representation of 3D vectors and points.
This structure is used throughout Unity to pass 3D positions and directions around.It also contains functions for doing common vector operations.
Besides the functions listed below, other classes can be used to manipulate vectors and points as well.For example theQuaternion and the Matrix4x4 classes are useful for rotating or transforming vectors and points.< x , y , z >.
var
var 是一种弱化类型的定义,定义了这个类型,编译器会自动判断该变量的类型。必须是这个形式var m = "asd" ,之后就无法给变量赋初始值类型不同的值了。这个变量是局部变量。
Time.deltaTime(The time in seconds it took to complete the last frame (Read Only).)<每一帧完成的秒数>
If you add or subtract to a value every frame chances are you should multiply with Time.deltaTime. When you multiply with Time.deltaTime you essentially express: I want to move this object 10 meters per second instead of 10 meters per frame.
GetComponent 我理解是获取内部的一个结构 ep.:GetComponent<spriteRanderer>获取sprite渲染器
transform:Every object in a scene has a Transform.It's used to store and manipulate the position, rotation and scale of the object
它被使用来储存和处理物体位置,旋转,物体的规模。ep.:var pos = transform.position;pos.x...............pos.y;
GameObject : Base class for all entities in Unity scenes.游戏里个体的基础集合。ep.:sp.SerActive(false);
Input.GetmouseButtonup(0),0代表鼠标左键。
- 南瓜鬼脸 (Unity)
- 南瓜
- 南瓜.........南瓜
- 水煮南瓜
- 南瓜盅炖蛋
- 南瓜粥
- 南瓜饼
- 鬼脸 from mail.yahoo.com.cn
- 南瓜做的脑袋
- 【海鲜南瓜方便面】
- PS制作万圣节南瓜
- 枷桃梦揽黄南瓜剐盏稍源盏遣蒲且
- 小青蛙、花岗岩和南瓜
- 万圣节各种搞怪的南瓜
- 南瓜苦瓜地瓜 抗癌顶呱呱
- 南瓜苦瓜地瓜 抗癌顶呱呱
- 快乐万圣节南瓜ppt模板
- 最新电影下载网站:南瓜园
- linux整理笔记
- #NOIP1999#邮票面值设计
- kafka学习笔记:知识点整理
- 第七届蓝桥杯大赛个人赛省赛(软件类)真题 C语言B组 3
- 有监督学习VS无监督学习
- 南瓜鬼脸 (Unity)
- 安卓相关内容整理
- 【Mongodb】aggregate限制返回字段
- JDK动态代理详解
- 蓝桥杯训练第一次作业
- 2016半年总结
- Sublime Text3 快捷键汇总及设置快捷键配置环境变量
- 怎样成为一个天才
- warning: LF will be replaced by CRLF in ... (git)