Search Unity

ViewID not found during lookup. Strange behaviour may occur

Discussion in 'Multiplayer' started by J_P_, Jun 11, 2010.

  1. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,027
    I didn't apply any viewIDs manually... this is a child object (with its own network view) of a network instantiated object. What can I do about it...?

    edit: could using "SetActiveRecursively" have anything to do with it..? Though I haven't seen this problem with other similar objects (other weapons) yet.
     
  2. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
    This happens to me also. Weird thing is, it only happens in the Unity Editor. When I run the program in Windows Standalone, things work fine.

    In the Unity Inspector, I see my game object's Network View's view ID become 0, while it had a number (6) while not running.

    Seems like a bug to me.
     
  3. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
    Whoops. My mistake. I was creating viewID's manually and didn't put the game object's network view's observed property into the script used like the documentation said.

    All working fine for me now.