- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 210字
- 2021-04-02 18:34:10
Time for action – Writing your first Unity script
Let's open our keep-up game project from the previous chapter, if it's not open already. We will write a really simple script and stick it to our Ball Game Object.
In the Project panel, right-click on an empty chunk of space and choose Create | JavaScript. Alternatively, you can click on Assets | Create | JavaScript in the menu at the top of the screen, or use the Create button at the top of the Project panel. A new script is added to the Project panel, inviting you to type a name for it. Name the script as "DisappearMe". It's also a good idea to use the same Create menu to make a folder and name it "Scripts", then drag your new DisappearMe script into it to keep your Project panel organized.

A brand new window opens up. This is Unity's default script editor, called Monodevelop. Its main panel looks a lot like a basic text editor because that's all that scripts really are—plain old boring text.

Note
Rolling your own
If you have your own favorite script editor, you can configure Unity to launch it instead. But, for the remainder of the book, we'll use the default editor.
- 多媒體CAI課件設計與制作導論(第二版)
- Spring Cloud Alibaba核心技術與實戰案例
- OpenShift開發指南(原書第2版)
- Instant Zepto.js
- C語言最佳實踐
- Elasticsearch for Hadoop
- Getting Started with NativeScript
- Java Web開發詳解
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- R語言:邁向大數據之路(加強版)
- Getting Started with Python
- Android Development Tools for Eclipse
- 零基礎學HTML+CSS
- Robot Framework Test Automation
- SaaS攻略:入門、實戰與進階