0 votes

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 !

in Engine by (14 points)

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.