You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我想实现一个角色死亡后重生的效果,我参考了UE官方的实现,https://docs.unrealengine.com/4.27/zh-CN/InteractiveExperiences/HowTo/RespawnPlayer/
我发现官方的实现使用了 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam 声明创建了委托,我不知道如果用ts写的话要如何实现呢 ?
我看到puerts官方文档中有 回调 相关的文档 https://puerts.github.io/unreal/zhcn/interact_with_uclass 这是一个概念吗 ? 我看这个的意思好像是puerts和c++互相调用,但我想实现的是puerts的两个类之间的事件通信。
然后我看到puerts_unreal_demo中有先在c++中声明一个类使用委托,然后在ts中调用的例子。请问必须要这样实现吗?无法仅通过ts实现吗?
我想的是用ts实现一个gamemode类和一个character类,character类如果触发人物死亡通知gamemode类,可以仅用ts实现这两个类的通信吗?
Beta Was this translation helpful? Give feedback.
All reactions