-
虚幻5.4.4,插件在开启了继承引擎类,这样写,如何使用ReplicatedUsing?下面这么写貌似没反应
|
Beta Was this translation helpful? Give feedback.
Answered by
kimxee
Oct 11, 2024
Replies: 2 comments 2 replies
-
没支持这个
|
Beta Was this translation helpful? Give feedback.
2 replies
-
更正一下,实际上rpc和uproperty.ReplicatedUsing=“OnTestNumberChange”的写法都是可以支持的。需要注意的是,ReplicatedUsing这种回调,只有服务器触发属性改变,客户端才会触发,服务器想触发需要手动调用。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kimxee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
更正一下,实际上rpc和uproperty.ReplicatedUsing=“OnTestNumberChange”的写法都是可以支持的。需要注意的是,ReplicatedUsing这种回调,只有服务器触发属性改变,客户端才会触发,服务器想触发需要手动调用。
另外所有这种返回为void的函数,一定要注意在函数声明里把:void带上,不能空着。空着的话,rpc就无法识别调用了。