who owns a networkview?

if you attach a networkView component to a GO in the editor, who owns it? In my experience it seems like nobody? So is it good practice to only use network views with prefabs that get instantiated at runtime?

Psx

I think in most cases (maybe in all cases), the owner is the server.

Jashan

If it were “in most cases” - what would be the determining factor? It doesn’t seem to be in all cases as far as I’ve been able to see.

psx

All Network Views which are in a scene in the Editor are owned by the server. They get the name “Scene ID: 1” and so on if you print the View ID of those Network Views (or look at it in the inspector). When you allocate a View ID (“Allocated ID: 1”, etc) and assign it to a Network View, then that Network View is owned by the one who did the allocation. This can be both a server or a client, they have it in common that they are runtime generated.

Thanks Larus!
psx