Recently, the boss of the project team suddenly said that the group to use Unity to make a new game on the Huawei application market, for only Android client development of Unity novice, start to learn Unity, this post mainly from the following two points:

  • How do I install the Unity Editor

  • If you quickly publish an APK package in the Unity Editor, get familiar with the tools

Sign up for a Unity platform account

Use Unity to develop games, download Unity Editor, download resource files in Unity Asset Store, etc., you need to use unity account, so don’t say anything, don’t ask anything, go here to register an account: id.unity.com

Install the Unity Editor

He that would do a good job must sharpen his tools. Start by installing the Unity Editor, refer to the instructions on the official website: unity.cn/releases.

There are many ways to install the Unity Hub in the official website. Here I use the Unity Hub recommended by the official website, that is, to install the Hub first and then install the Unity Editor in the Hub.

  • Unity Hub: A tool for managing Unity projects, The Unity Editor, licenses, add-ons, and more.

  • Unity Editor: A tool platform for subsequent development projects, similar to Android Studio, for writing and running projects. It also allows you to jump directly to the Unity admin console interface, which is very handy in practice.

Specific installation steps:

  1. Install Unity Hub.

  1. After installing The Unity Hub, you can open the Unity Hub and click On the Unity Editor. Here is the latest version of the official release I installed.

  1. License management. Here I use the personal version of the license, as a beginner and business enthusiast enough.

Install Visual Studio(optional)

In theory, this step is not required. Visual Studio will be installed automatically during the Unity Editor installation process. (Unity generally uses VS as a script Editor) Can alone to install VS, reference blog.csdn.net/fromfire2/a…

If the installation works, this should be associated with VS. The correct results are as follows:

New project

  1. Open the Unity Hub and create a new project on the following screen.

  1. When you click the Create button, the Unity Editor automatically starts to open the project. For each new project, Unity has a default sample game scenario: SampleScene

A Scene, as the name suggests, is the architecture, characters, background, sound, and special effects we see in a game, which is basically the same concept as the “Scene” we see in a game when we play it.

More about the Unity of some basic concepts introduced to search on the net, or directly refer to the Unity website documentation: docs. Unity. Cn/cn/current /…

After creating a new project in Unity Editor, there will be a SampleScene. How to add characters, buildings, backgrounds, sounds, buttons, and so on to the game Scene? Here I don’t care, after the project to use as needed to learn, first familiar with Unity packaging operation. I’m just going to pack this empty SampleScene.

  1. Android environment Settings. Refer to the official website documentation. Since I have my own native Android SDK and Jave SDK, I’ve associated my own native SDK.

  1. Perform the following operations to select and release the Android package and modify the package name and version number.

  1. Connect the mobile phone and click the APK package by referring to the following operations.

Can install this application normally on the mobile phone ~~~~ have the picture to have the truth!!

For more details, please see: the Unity of Chinese document: docs. Unity. Cn/cn/current /…


The original link: developer.huawei.com/consumer/cn…

By Mayism