- Home /
How to add a script in the "Observed" variable of a "Network view" ?
I am using "Networking" official example by Unity. I try to create a character similar to Network Person Player (prefab).
In this prefab, there are 2 network views, each one refering to the prefab itself, but with a specific script. I tried to drop a script on my own network view but it doesn't work.
This is what I get :
How can I do the same as in Networking example ? (I have searched forum and answers but I am still stuck)
Answer by PrimeDerektive · Jan 27, 2011 at 02:57 PM
The script has to be attached to this gameobject, and then you drag the script to the observed field (don't drag it from the project, actually drag it from the inspector of the same object).
Answer by Matthew A · Jan 27, 2011 at 02:57 PM
Add the script to the game object first, then drag the added script using the heading in the inspector to the Observed slot (rather than directly from the project listing).
Your answer
Follow this Question
Related Questions
Network view not attached 0 Answers
observing script with network view 1 Answer
Unable to properly serialize ????? 1 Answer
Observing network traffic, bytes received, bytes sent 2 Answers
how can I send file via network ? 0 Answers