没有合适的资源?快使用搜索试试~ 我知道了~
UnityScript新手入门基础指导(英文版)
需积分: 10 10 下载量 127 浏览量
2014-03-04
22:47:18
上传
评论
收藏 7.04MB PDF 举报
温馨提示
试读
107页
UnityScript即Unity3D中的javascript,虽然是英文版,但是图文并茂,适合新手入门
资源推荐
资源详情
资源评论
By iGraphic Visuals LLC 2010
UnityScript Basics for Noobs
1 Especially for Noobs
1.1 1: Introduction 5
1.2 2: Your Game is Full of Stupid Objects 9
1.3 3: The "God Complex" 13
2 The GameObject: Scripts & Components
2.1 4: The Class, the Component, and the Script 16
2.2 5: Variables in Scripts 19
2.3 6: Functions in Scripts 22
2.4 7: Dot Syntax in Scripts: Communicating 24
2.5 8: Conclusion 26
3 Variables in Detail
3.1 9: Variables & Component Properties 28
3.2 10: Variable names and "type" 33
4 Functions in Detail
4.1 Unity's Update() & Start() functions 45
4.2 Function names 51
4.3 Function calls and flow 55
5 Decisions, decisions, always having to make decisions
5.1 if? 61
6 Dot Syntax: Component Communication
6.1 Communicating outside of your script 73
6.2 The Egg script, lines 1 - 5 77
6.3 The Egg script, lines 7 - 11, The Update() function 83
6.4 The Egg script, line 13, Rotating the Egg 85
6.5 The Egg script, line 15, Watching the Rotation 88
6.6 The Egg script, lines 17 - 23, Stop Rotating 91
7 Assigning using the Inspector
7.1 A neat Unity feature 100
7.2 Using one script and the Inspector 104
8 Congratulations, you now understand the major basics of scripting
8.1 What next? 107
Especially for Noobs
UnityScript Basics for Noobs - 4
1: Introduction
A word of warning before starting - this is not the "Be-all, end-all" manual on UnityScript. This manual is
intended for the person that wants to use Unity, AND has no knowledge of any sort of programming.
Use the info here to get your feet wet, to shed some of the fears of adding some scripts to your
GameObjects.
Scripting, or programming in general, is learned in very basic steps, especially for total noobs. Chances
are you need to overcome some unjustified fears about how amazingly difficult scripting appears to be.
The basics of UnityScript really aren't difficult. We do things everyday that are just like the procedures
followed in scripting.
There are books, manuals, and tutorials galore on programming that can show you how to really get
into the details. There are also many video tutorials to learn Unity, and they just about all teach scripting
basics. After going through the steps in this manual, you should feel a lot more comfortable learning
from those tutorials. At least you'll have a basic understanding of what other authors are saying.
I'm a beginner of Unity myself. I also know what's it's like to learn other programming languages. I've
had to go though the bewilderment just like you. I hope this manual will make clear the concepts of
scripting that I've learned. I hope teaching you from a "new-user" perspective will turn on the lights for
you, too.
Lessons 1 to 7 are for total noobs, those that have absolutely no clue about programming at all. I'm
talking really low level and basic. I just attempt to explain the basic concepts in everyday life examples.
I don't want you to always have that fuzzy spot in your mind that causes you to give up.
Lessons 8 and higher actually begin looking at applying the concepts to UnityScript.
It seems that most beginners can learn fairly easily how to operate Unity, it's primarily the scripting they
fear. This Noobs manual assumes you've learned, from other sources, your way around the Unity
Editor, even working with asset files. This is strictly about learning the basics of scripting.
UnityScript Basics for Noobs - 5
剩余106页未读,继续阅读
资源评论
zephyrflow
- 粉丝: 33
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功