Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlua 对于 RepNotify 的变量 不支持 Set with Notify 吗? #718

Open
ZezhongWang opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@ZezhongWang
Copy link

Unlua 对于 RepNotify 的变量 不支持 Set with Notify 吗?我现在似乎只能在蓝图中调用 Set W/Notify 节点来触发 OnRep_X() 函数。

例子如下:
我在 Dedicated Server 上调用这个函数:

function M:SetBeginOpenDoorLua(b)
    print("Unlua_Door:SetBeginOpenDoor ", b)
    self.BeginOpenDoor = b
end

但是并没有正确触发 OnRep_BeginOpenDoor 回调,我确认了蓝图的设置正确并且是 Replicated 的
image

如果我自制一个调用蓝图本身的 Set w/Notify节点的函数,OnRep_BeginOpenDoor 回调会被正确触发
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant