Unity Primary Study Notes-hello Unity

Source: Internet
Author: User

Unity3d is one of the most widely used 3d game engines, and this series of tutorials will use unity to create a tank battle game to take you through Unity's use.

This tutorial mainly describes the installation of the engine and the construction of the environment, and finally, we will run the first program of unity on the phone.

First download Unity's newest engine on Unity's official website, and the latest version is 5.3.4,:http://unity3d.com/cn/get-unity/download?ref=personal

After downloading, follow the prompts to install, run unity, the effect is as follows:

Here you can open the previous project, you can also create a new project, click New New Project, interface

You can choose a 2D or 3D project, you can create a project name and a directory name, and the Unity interface works as follows:

The layout of the interface can adjust itself, at present my layout is the current scene hierarchy on the left, the right side is the property panel, below is the entire project directory and the console, the middle is the editing scene and the game run interface, each part of the function will be in the next tutorial detailed introduction, Here we click Gameobject/3d object/3d text to add a 3d text and set the text in the Properties panel to "Hello unity! ", you can see that the scene interface is the result of getting the effect of running, click on the middle of the run button to get the effect as follows:

For code editing and debugging in unity, it's best to use Monodevelop,monodevelop as an open source integrated development environment for Linux, Mac OS x, and Microsoft Windows, primarily for the development of mono and. NET Framework software. MonoDevelop integrates many of the features of Eclipse and Microsoft Visual Studio, such as Intellisense, versioning, and GUI and Web design tools. It can be run on both Mac and Windows: http://www.monodevelop.com/download/

After the download runs, follow the steps to install, after the installation is complete, in Unity's edit/predference interface, click External Tools in the External Script editor select MonoDevelop to complete the configuration, After you save the scene, right-click Open C # project in the project panel to start MonoDevelop.

In Unity's Edit/predference interface, click on the Android SDK and NDK in external tools and set the path in the Java JDK (first to download these on your PC, not difficult for mobile game developers), and set the interface as follows:

Then File/build and running or build setting choose the Android interface, select the image Export format click on Build can hit the Android apk package, the APK package installed on the Android phone can be run , it should be explained that due to the Android SDK version of the requirements, may pop-up version too low hint, then follow the prompts to update.

You can click on the Player setting in the Properties panel to set the icon, start the page and other export package parameters, the default package is dynamic horizontal screen, you can set the screen in the interface direction in the vertical screen

The next article describes the UI system.

Insufficient capacity, limited level, if there are errors, welcome to point out.

Unity Primary Study Notes-hello Unity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.