unity3d - How to send a photo over network with Unity? -


i trying show players facebook profile picture each other when playing vs game. tried send picture [command] , [clientrpccall] attributes not work. idea?

it's trivial google answer question.

to started ...

[rpc] void sendtextures(byte[] receivedbyte){  receivedtexture = null;  receivedtexture = new texture2d(1, 1);  receivedtexture.loadimage(receivedbyte);  getcomponent<renderer>().material.maintexture = receivedtexture;  } 

just google 100s of full examples , discussions.

here's huge discussion many full scripts , on

http://forum.unity3d.com/threads/sync-texture-over-network.76538/

try googling,

unity3d send image on rpc

unity3d send png on rpc

unity3d texture rpc

and on


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -