Code Monkey home page Code Monkey logo

Comments (8)

pangweiwei avatar pangweiwei commented on May 23, 2024

这种网络同步的属性,你需要继承自LuaActor,然后添加你的属性申明

from sluaunreal.

kongbu0621 avatar kongbu0621 commented on May 23, 2024

在lua里怎么添加相应的属性申明? 语法是怎样的? wiki里没提到, 我不会写

from sluaunreal.

pangweiwei avatar pangweiwei commented on May 23, 2024

不是,是从c++继承ALuaActor,然后吧你上面的写上去

from sluaunreal.

kongbu0621 avatar kongbu0621 commented on May 23, 2024

我需要在lua里写所有逻辑, 不能写在C++里

from sluaunreal.

pangweiwei avatar pangweiwei commented on May 23, 2024

目前你定义rpc的数据需要在c++里,定义完了之后可以用lua写代码。

from sluaunreal.

kongbu0621 avatar kongbu0621 commented on May 23, 2024

策划需求改变,我必须在lua里做处理。如此只需要更新lua代码即可。 如果在C++里定义新的rpc数据, 还是需要重新打包,然后整包更新,没有意义

from sluaunreal.

pangweiwei avatar pangweiwei commented on May 23, 2024

我思考一下如何在lua里增加支持

from sluaunreal.

zengdelang avatar zengdelang commented on May 23, 2024

Lua配合蓝图可以实现,在蓝图里面声明对应的同步变量,RPC函数以及OnRep_XXX等函数,通过LuaActor的luaImplemented可以拦截对蓝图的反射调用,转到lua中调用即可对应同名函数即可

from sluaunreal.

Related Issues (20)

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.