- Home /
How to make a gameobject into a stream?
And how to make a stream into a gameobject?We use what to convert them?
How to convert between data stream and unity's resources(picture,sound,object,scene,etc)?
Didn't you already ask this? And we had this whole conversation about it? Or is it just deja-vu?
How to convert between data stream and unity's resources(picture,sound,object,scene,etc)?
Answer by syclamoth · Sep 29, 2011 at 05:46 AM
Well, as per my previous answer to this question, it depends on why you are doing the serialization! Depending on the target application, you could either use NetworkViews, the WWW class, or straight C# serialization. If you provide more details about what you are trying to do here, I can help you more!
We want to develop a online game.Use TCP between phone and our server.So I think we need to know how to convert between data stream and unity's resources(picture,sound,object,scene,etc)? I think it will use straight C# serialization?The WWW class have some problem on phone GS$$anonymous$$ ISP's proxy as I practice.And NetworkViews I haven't used.
We do this!$$anonymous$$ake a object into a data stream,transport it by TCP,then make this data stream into object.Just do this!I think use c# serialization will be well!?
Yes it will, but for assets such as textures, it'd probably be more efficient to package them with the standalone!