Search Unity

Third Party Can Networkview be used with Photon

Discussion in 'Multiplayer' started by ktweedy1, Aug 13, 2010.

  1. ktweedy1

    ktweedy1

    Joined:
    Apr 16, 2010
    Posts:
    26
    I am using Photon and have it working sending transform data and now need to do animations and rigid body stuff.

    So was thinking as a simple solution to start to maybe use the NetworkView till I have time to write a more robust solution.

    Can I use NetworkView, serialize everything, and pass it over Photon the network where on the receiving side maybe it up with the correct NetworkView and pass it the streams so it can deserialize into the GameObject?

    If I can do that, Do I call on each NetworkView myself or is there some other hook into the Networking classes I should use?

    I guess as another option, can I serialize a component myself, like the tranform, animation or rigid body component? How is that done?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    NetworkViews are a unity network thing and don't exist otherwise.

    But I don't see why you need it cause the serialize is nothing else than what you do when you send an event with a hashtable