How to send texture in RPC call?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By aseel

I have the following code

var texture =

now I want to send the texture value to other player ,so i can use it there as a texture for TextureRect node , as the following


but it’s not working !

If both players are running the same game, why not send something like the texture id, and then the other player can lookup what texture is associated to that id? That way you would save bandwidth. This only works if both instances of the game share the exact same set of textures.

godot_dev_ | 2022-06-22 18:58