Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | aseel |
I have the following code
var texture = ImageTexture.new()
texture=_viewport.get_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
rpc("set_texture",texture)
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