godot-python
godot-python copied to clipboard
RPC Decorators do not work
using e.g. @rpcremote does not work properly (method does not get registered).
I think you forgot to return decorated in :
def __call__(self, decorated):
if isinstance(decorated, ExportedField):
decorated.rpc = self.mod
else:
decorated.__rpc = self.mod
Workaround:
use self.rpc_config('my_rpc_method', MethodRPCMode.REMOTE) in _ready() for now.