当前位置:网站首页>Unity3d, Alibaba cloud server, platform configuration
Unity3d, Alibaba cloud server, platform configuration
2022-07-06 12:36:00 【SQ Liu】
Unity3D, Aliyun server , Platform configuration
One 、C/S Architecture configuration process
1.1 New plan scenario in the project
1、 open Unity project , The steps are as follows .
( This platform uses Unity Version is 2018.4.2f1, Be sure to keep consistent with this version !)
2、 such as , To configure a new scenario for testing . But first Levels Create an empty folder under the folder , Used to store test scenarios . according to “×××00001” How to name . Because it is now the configuration test scenario , So the folder can be named “Test00001”, The scene under this folder can be named Test00001, It is best to keep the scene name consistent with the folder name .
3、 From the previous complete project ( for example JT00001) Copy some game objects necessary for new projects . The necessary game objects are weatherController,Environment,Terrain. For the copied Terrain, Because the terrain of the new project is certainly different from that of the previous project , So the terrain copied here just make sure it's a Terrain that will do ,( That is, it is a terrain , And the name is Terrain) We can delete the copied terrain , It is also possible to create a new terrain by yourself . Here we will use the previous terrain to explain .
4、 stay Environment Create some simple geometry under the folder as a test scene . by the way , You need to put Main Camera Has been deleted , As shown in the figure below .
5、 After completion ,Ctrl+S Save the scene . Click on Build Window, take Build Check all four options below , As shown in the first figure below . And then click Assets, Choose the third Build All Assets Bundle(Standalone For Server And Editor), Until the prompt in the lower left corner “Build Asset Bundle Complete!”, As shown in the second figure below .
6、 Click on Assets Below Open Bundle Manger Window, As shown in the figure below .
7、 In the pop-up window , Click on Create, Click on Scene Bundle, Change its name to the same name as the scene , Here is Test00001.
8、 Drag the scene resources on the right , As shown in the figure below .
9、 And then click Build All Assets Bundle(Standalone For Server And Editor).
1.2 Adding records to the cloud server database
1、 Remote connection 118 The server , The server address 、 user name 、 The code is as follows :
Address :118.××.×××.××:×××××
user name :×××××××××××××
password :×××××××××××××××××××
2、 open Navicat, First, in the basicscene Create a new record in the table ,Name Keep consistent with the scene name , Here for Test00001,Description Describe according to specific requirements , As shown in the figure below .
( Be careful : Never shut down the open process in the remote desktop , Maybe other events are running . After you finish your task , Minimize it .)
3、 stay organizationinfo In the table , Configure the organizational structure of the user .Company Fill in the custom name in the field , You can imitate the above record to add , As shown in the figure below .
4、 stay role In the table , Imitate the above record and add corresponding roles , As shown in the figure below , I only add two roles here ( Commander in chief , firefighters 1 Number ).
5、 stay runtimeeditorconfig In the table , Create a new record ,ProjectContent The field content is consistent with the above format , You can copy and paste .
6、 stay user In the table , New record , Imitate the above format to add , As shown in the figure below . Be careful Company Field , It is necessary to give a non repeated company abbreviation or pronoun to the new project ;AccountType Fill in Admin, Represents an administrator , Later, you can dynamically add other users by configuring the platform .
7、 The information in other tables can not be modified at present , Later, add according to the needs of the project .
8、 go back to Unity, stay SandtablePlayLauncher scenario , Click on the run , Input just in Navicat in user The user name and password added in the table , As shown in the figure below .
9、 After logging in , Click on “ Plan management ” entrance , Click... On the top right “ newly added ” Button to add and configure the plan , As shown in the figure below . Select the desired scenario Test00001, Then determine .
10、 Click this setting button to enter , As shown in the figure below .
11、 stay EditorLauncher In edit mode , Before editing the scene , Click on File Below Build Settings, Be sure to check everything shown in the figure below .
12、 Click on the run , Input just in Navicat in user The user name and password added in the table . Then select the loading scenario according to the steps shown in the figure below .
13、 Select the required left resource to add to the scene , As shown in the figure below . Add a little at a time , Just save it ( The third one in the upper right corner saves ), To avoid bug, As a result, the previously added model is not added .
14、 After saving , go back to Unity, First click Build Server Only, wait for build After completion , Click again Build Client Only, As shown in the figure below .
15、Build Server Only The completed interface is as follows , Do not shut down. , Minimize it .
16、Build Client Only After completion , Click on the run , Log in to view the effect . Login background UI The interface changes in FGUI Finish in , I won't explain it here first .
If compiling pc Version of the resource , You need to check the second option :Is Build Standalone Client, If you need to compile Webgl edition , Then do not check the second option .
Two 、 Some function modification methods
2.1 FairyGUI Production and release
The created interface should be set to export .
The relevant settings published can be set by default , Do not modify the path and other settings .
2.2 SVN to update
1、 Download project engineering files ( Create an empty folder , The folder name should not have Chinese , Right click —SVN Checkout—OK, Then wait for the download ).
2、 Update project ( It is better not to update the whole project , Because it's easy to have conflicts and bring some problems . It is better to update targeted , Open the place you want to update , such as , Just want to update a script , Then first find the script in the folder , Then click to select the script , Right click “SVN to update ”, As shown in the figure above . Bear in mind , Never order SVN Submit !!)
3、 ... and 、 Platform modification method
( One ) Static model adding method ( In this example JT00001 Finish in )
If you only add static models in the scene , Once added , The location is a fixed model , Add as follows :
1、 Find the scene where you need to add a model , Double-click to open ( Here we use JT00001 For example ).
2、 Import external model resources ; perhaps , Directly in Unity Make some basic models in , Combine them , Form a simple model , Then create a new empty object Create Empty, Drag the created model in .
3、 If you want to add colliders , You can create a new one directly Cube, Stretch it out , Move to the position where you need to set the collider , Final cancellation Mesh Renderer Checked by , Hide it .
4、 After completion ,Ctrl+S Save the scene .
5、 find Build Window Second of , namely Assets, Choose the third , Until the prompt in the lower left corner “Build Asset Bundle Complete!”. As shown in the figure below .
6、 If it's a local test , Be sure to GameInformationsConfigSOV Make some changes to the code in the script , The revised part is as follows :
7、 The key thing is , Pay attention ! find Build Window The first of , In general , You need to test yourself first , So you need to “Is Test Locally” Check on , The following three items need to be checked .
Complete the following operations in sequence :
(1) First click “Build Server Only”, wait for Build The server is finished , After completion, the following interface will pop up , Minimize it , Do not shut down. .
(2) Click again “Build Client Only”, wait for Build Client complete , After completion, you can click Run . The user name and password are “jt01”, Then enter the drill hall , Select a coaching group / Commander in chief , determine , Self test whether the modification just made is completed .
( Two ) Edit side EditorLauncher Usage method
1、 Double-click to open “EditorLauncher”, If the dialog box shown in the following figure pops up , Click on “Don’t Save” that will do .
2、 choice File Below Build Settings, As shown in the figure below .
3、 Check all .
4、 If I don't check it , When I hit run , There will be a large blank as shown in the figure below .
5、 When checked , Click on the run , Log in with your account , The user name and password are jt01.
6、 Operate according to the following figure in sequence .
7、 Through the mouse wheel and right button , Zoom and rotate the field of vision .
After each operation completes a part , It's better to keep , Avoidance system bug As a result, the previous one was not saved . After all, you can close .
8、 Be careful : When you encounter the situation shown in the figure below , Need to close and re-enter .
9、 If it is closed according to the method in the upper right corner of the above figure , After login , The content shown in the following figure will appear , choice “ Plan management ” Can .
then , Click the setting button shown in the figure below , You can re-enter .
10、 After closing all , If it is still local testing , You still need to check “Is Test Locally”, And then click “Build Server Only”, wait for Build The server is finished .
11、Build After the server is completed , Again “Build Client Only”, wait for Build Client complete .
12、 After the server and client are completed , It's ready to run .
边栏推荐
- [Offer29] 排序的循环链表
- Design and implementation of general interface open platform - (39) simple and crude implementation of API services
- Theoretical derivation of support vector machine
- Walk into WPF's drawing Bing Dwen Dwen
- ESP8266连接onenet(旧版MQTT方式)
- Compilation principle: preprocessing of source program and design and implementation of lexical analysis program (including code)
- ES6 grammar summary -- Part I (basic)
- Redis cache update strategy, cache penetration, avalanche, breakdown problems
- Database course design: college educational administration management system (including code)
- JS function promotion and declaration promotion of VaR variable
猜你喜欢
Theoretical derivation of support vector machine
Basic operations of databases and tables ----- creating data tables
(五)R语言入门生物信息学——ORF和序列分析
Vscode basic configuration
Arduino JSON data information parsing
Gravure sans fil Bluetooth sur micro - ordinateur à puce unique
Cannot change version of project facet Dynamic Web Module to 2.3.
idea中好用的快捷键
MySQL时间、时区、自动填充0的问题
單片機藍牙無線燒錄
随机推荐
MySQL takes up too much memory solution
CUDA C programming authoritative guide Grossman Chapter 4 global memory
Embedded startup process
dosbox第一次使用
Latex learning
[esp32 learning-2] esp32 address mapping
Intermediate use tutorial of postman [environment variables, test scripts, assertions, interface documents, etc.]
Gateway fails to route according to the service name, and reports an error service unavailable, status=503
[offer78]合并多个有序链表
JS 函数提升和var变量的声明提升
(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
JS正则表达式基础知识学习
HCIP Day 12
Unity3D制作注册登录界面,并实现场景跳转
[offer78] merge multiple ordered linked lists
[Leetcode15]三数之和
2021.11.10汇编考试
Types de variables JS et transformations de type communes
2022.2.12 resumption
Unity scene jump and exit