Code Monkey home page Code Monkey logo

huatuo_trial's Introduction

huatuo 体验项目

一个示例热更新项目。

想了解更多,请加 QQ群: 651188171(huatuo c#热更新)。

你可以使用发布的包来体验huatuo热更新功能。

示例项目使用 Unity 2020.3.7 版本,需要精确匹配。

目录介绍

  • Assets Unity项目目录
    • Main AOT主包模块
    • Hotfix 热更新模块

使用介绍

huatuo为c++实现,只有打包后才可使用。日常开发在编辑器下,无需打包。

如何打包出一个可热更新的包,请先参阅 快速上手

工作原理

进入场景后,Main场景中的LoadDll会自动加载 StreamingAssets目录下的 HotFix.dll,并且运行 App::Main函数。

运行测试

运行你们自己打包出的程序,你会看到屏幕上打印 "hello,huatuo" 。

体验热更新

  • 打开 huatuo.sln
  • 在HotFix项目的App::Main中修改代码,比如改成打印 "hello,world"。
  • 编译HotFix。将编译好的HotFix.dll复制到发布目录。注意要退出测试程序,不然dll被占用,无法复制。
  • 再将运行,屏幕上会打印"hello,world"。

剩下的体验之旅,比如各种c#特性,自己体验吧。

huatuo_trial's People

Contributors

pirunxi avatar zxsean avatar shuaigao 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.