Giter Club home page Giter Club logo

unity-install1's Introduction

安装Unity&SDK&JDK教程

由于视频大小超过25m无法直接上传至仓库,故附上百度网盘链接
1. 安装Unity:UnitySetup64-5.6.2f1

1

  • 2、修改路径,要预留较大的位置出来

2

  • 3、一切确定完之后就可以进行安装。

3

  • 4、注册登录登录Unity账号

5

  • 5、打开Unity页面

6

2. 安装安卓插件

6.1

7

  • 完成安装。

4

注:该插件的下载路径要与Unity的位置一样。不然在下载的开始的时候就会出现错误。

  • 下载该插件,就可以支持发布页面的安卓选项。

8.1

3. 安装Unity资源包
  • 安装该资源包没什么需要注意的,一路向下即可。

9

4、安装安卓的JDK

10

注:请记得修改安装到的路径。

11

  • 安装中

12

  • 安装完成。

13

5. 检查配置
  • 在检查配置前,要先进行环境变量。
  • 我的电脑--右键--属性--高级系统设置--环境变量。

13.1

  • 用户变量--新建:JAVA_HOME;变量值:如图。
  • 编辑--变量名"Path"--在原变量值最后添加%JAVA_HOME%\bin。

13.2

  • 打开cmd,输入Java,出现以下结果,即证明没存在问题。

14

  • 输入javac,若出现以下结果,这证明环境变量没问题。

15

6.安装安卓的SDK置
  • 解压红虚线框中的压缩包,安装。

16

  • 运行SDK管理,进行资源更新

17

  • 双击打开,按Install pakages安装包。选择Android SDK License,再按Install

18

6.添加JDK和SDK的路径。--配置Unity3D的Android运行环境。
  • 打开Unity3D--edit--preferences

注:在选择JDK和SDK的路径的时候,千万记得要用英文的路径。要是存在中文,则会发生错误。

19

  • 查看软件是否有安卓发布渠道。若出现如下图所示,则证明成功了。

19.4

7、项目导出。
  • Assets--Export Package...--在弹出窗口中,全选所有items,按Export.

20.1

21.2

7.项目导入
  • Assets-Import Package-Custom Package。全选所有items,然后按import。

22

22

注意:所选择的文件的格式是package file.

8、生成文件(生成apk为例子)
  • file--build settings
  • 按Add Open Scenes选择场景“sj”后,再按左下角的Swith Platform适配平台,再按Build,选择路径(必须是英文,不能是中文)
  • 选择Android--Swich Platfrom--根据教程按Player Settings调设置
  • 相对应的修改Company Name、Product Name和Package Name.(注意命名需要规范) 25

26

27

28

29

  • 最后点击“build”,生成APK文件

unity-install1's People

Contributors

zhengxiaopingzxp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.