GithubHelp home page GithubHelp logo

qqrrjj2011 / et-owdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nullstacksuger/et-owdemo

0.0 0.0 0.0 292.37 MB

License: Other

Shell 0.14% C++ 0.40% C 2.58% Emacs Lisp 0.03% Smalltalk 0.01% C# 89.68% PowerShell 0.02% CMake 5.58% Batchfile 0.18% ShaderLab 1.40%

et-owdemo's Introduction

ET-OWDemo

运行步骤

1.需要安装: unity2022.3.15f1, Rider, 梯子

2.以管理员权限打开UnityHub, 打开(Open), 选中'ET/Unity'文件夹

3.Unity菜单->Edit->Preferences->External Tools,点击下拉框'External ScriptEditor'选择Rider,Generate .csproj files for全部不要勾选

4.Unity菜单->Window->Package Manager->HybridCLR->Update

5.Unity菜单->HybridCLR->Installer

6.'Assets/Resources/GlobalConfig', AppType选择'LockStepFrame', CodeMode选择'ClientServer', EPlayMode选择'HostPlayMode'

7.开启资源服务器 (http://地址:端口/CDN/PC)

①如果你的服务器只能在本地访问, 运行游戏时最好别开梯子

②在ResourcesComponent.GetHostServerURL()中更改资源服务器网址

8.Unity菜单 -> ET -> Compile(或按快捷键F6)进行编译

9.打开ET.sln,编译整个ET.sln,注意第一次要翻墙(翻墙后如果还有报错解决不了可以尝试先用VS打开ET.sln编译一次后再回到Rider重新编译一次)

10.打开Assets/Bundles/Scenes/Map1, 点击Unity菜单->Tools->Generate Map Infos

11.Unity菜单->HybridCLR->Generate->All

12.Unity菜单->HybridCLR->CopyAotDlls

13.Unity菜单->YooAsset->AssetBundle Builder

①BuildPipeline : 'ScriptableBuildPipeline'

②BuildMode : 'IncrementalBuild'

③CopyBuildinFileOption : 'ClearAndCopyAll'

④点击'Click Build'

14.可以在ET/Unity/Bundles里找到打包好的文件, 如果你想删除这些, 最好把DefultPackage里面内容也删了

15.把YooAsset最新打包的资源放到资源服务器里面

16.打开Assets/Scenes/Init, 点击Play即可运行

打包过程

1.Assets/Resources/GlobalConfig, CodeMode选择'Client'

2.Unity菜单 -> ET -> Compile(或按快捷键F6)进行编译

3.重复'运行过程' 11-15步

4.Unity菜单->ET->BuildTool, 点击'BuildPackage'

开发时运行过程

1.注释掉ResourcesComponent.Update()

2.Assets/Resources/GlobalConfig, CodeMode选择"ClientServer", EPlayMode选择'Editor Simulate Mode'

3.以后每次更改代码后, 点击Unity菜单 -> ET -> Compile(或按快捷键F6)进行编译

et-owdemo's People

Contributors

nullstacksuger 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.