Pass a Resource in RPC method
Asked Answered
P

1

0

Hi,
I have two projects (client and server)

My Client project stores data into a Custom Resource "WorldData"

I want to know if it's possible to send the WorldData resource on the server with RPC

I already tested, so when the client call the rpc function from the server "GetWorldData(WorldData:Resource)"

It seems that the Resource in converted to an EncodedObjectAsID and I don't know if it's possible to get back my initial Ressource

Thank you :

Poolroom answered 14/11, 2023 at 16:29 Comment(0)
M
1

From the documents:

RPCs will not serialize objects or callables.

Try putting the values from WorldData into a Dictionary and sending that instead.

Margarettemargarida answered 15/11, 2023 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.