Git Product home page Git Product logo

debugable-unlua's Introduction

What is this?

UnLua是Tencent开源的一个在UE中集成Lua的插件。 本仓库在其基础上修改(基础版本为106fa9c,目的是打造一个开箱即用的UnLua,可调试和一些基础lua库、编辑器优化。

  • 源码集成Luasocket
  • 源码集成LuaPanda 3.1.0
  • 源码集成Lpeg
  • 源码集成Sproto
  • 源码集成Luacrypt
  • 源码集成lua-protobuf#392ace3
  • 集成serpent
  • 源码集成lua-fmt
  • 统一了unlua加载C Lua模块的方式,只需要继承FLuaLibFeature按照接口实现即可。
  • 增加编辑器生成lua文件的提示、检测蓝图有没有继承UnLuaInterface接口。

LuaPanda调试

首先下载VSC之后安装Luapanda插件,然后在项目的Lua文件中添加:

if not BUILD_SHIPPING then
    require "LuaPanda"
    LuaPanda.start("127.0.0.1",8818)
end

并且我也根据不同的编译环境我添加了下列全局变量:

lua_pushboolean(L, !!UE_BUILD_SHIPPING);
lua_setglobal(L, "BUILD_SHIPPING");

lua_pushboolean(L, !!UE_BUILD_TEST);
lua_setglobal(L, "BUILD_TEST");

lua_pushboolean(L, !!UE_BUILD_DEVELOPMENT);
lua_setglobal(L, "BUILD_DEVELOPMENT");

lua_pushboolean(L, !!UE_BUILD_DEBUG);
lua_setglobal(L, "BUILD_DEBUG");

可以在项目的lua文件中使用。

debugable-unlua's People

Contributors

hxhb avatar vjien avatar whoissunshijia 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.