#Nested networked objects

9 messages · Page 1 of 1 (latest)

fallow horizon
#

Hi @stone owl

I need to have some NetworkObjects that are parented to some other NetworkObjects, and I need to change this parenting at runtime.
I read from the documentation (at https://fish-networking.gitbook.io/docs/manual/guides/spawning/nested-networkobjects) that this is "Nested NetworkObjects", and that this not supported (yet).

However, I would like to know if the below scenario is safe:

  • Let's assume we have 2 NetworkObjects
  • Those 2 NetworkObjects are spawned from the server in a standard way, ie independently with no nested aspects
  • Once they are both spawned, the parenting is modified with standard Unity transform, both on Server and Client
  • Before Deswpaning, the server is unparenting the nested NetworkObject and asks the client to do the same
  • Despawns occurs then as usual

So ? Doable ? Acceptable or risky ?

Tx!

fallow horizon
#

@stone owl could you please take a look ? thx !

whole spruceBOT
#

Gave +1 Rep to @stone owl

stone owl
#

Not today sorry. Just got back from holidays and have other things with priority. Oh you're asking about a scenario, my apologizes.

#

Thought perhaps you needed to file a bug report.

#

I don't see why that wouldn't be doable. You dont need to tell client to parent or unparent either if a regular transform.

#

You could just add a script to auto sort locally

#

but RPCs are ordered as well spawns. So if you send a RPC 'change parent' before despawning for example, its fine

fallow horizon
#

thanks @stone owl