LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add more ways to parent NetworkIdentities to client objects

Open Someone-193 opened this issue 1 year ago • 5 comments

Goal Description

As of right now, you can only parent NetworkIdentities to other NetworkIdentities (which is REALLY nice), but it would be amazing too if we could somehow parent objects to things like a CameraTransform or a models hitbox. There's been discussion of this already with all sorts of ideas on how to implement them, but they're such major reworks that I'm worried if I'll ever see them implemented. Even if it was inefficient / ugly, it would be incredible if there were RPCs designed to parent network identities to specific client objects (or if you want to try to avoid accidental client-only destruction, make a MonoBehaviour that moves its parent to another gameobjects position without directly parenting). If we had tools like these for common moving non-networked objects, we could eliminate lag entirely in certain projects like UIs with primitives that parent to CameraTransform and follow y rotation AND head bobbing (which parenting to ReferenceHubs currently cannot do), cosmetics that track a models hitbox perfectly so it's like a skin (instead of lagging behind and blatantly desyncing with animations), etc...

My idea might not be the greatest and most reliable, but it can surely be implemented, especially in a reasonable amount of time. And if this was implemented, I have no doubt many would appreciate it, even if it is crude.

Notes

with the RPCs I mentioned, maybe you could set up a network message with a NetworkIdentity as the child, a NetworkIdentity as the parent, and an enum that specifies to a client what to parent, and what to look for? You could also use the same network message from client -> server to tell the server when a client says they dont have the NetworkIdentity parented and fire an event for people to try to reparent (to avoid inf loops, you'd probably want a Not Found value and a None value in the enum to specify why the NetworkIdentity isnt parented so a plugin dev can check if client sent back a Not Found value then stop trying to parent the NetworkIdentity)

Someone-193 avatar Sep 20 '25 20:09 Someone-193

please stop changing how parents work 🥀

mawosl avatar Sep 20 '25 20:09 mawosl

good idea

Rysik5318 avatar Sep 21 '25 16:09 Rysik5318

Thank you for your suggestion! We've logged this issue in our internal git system for further review and tracking. Please note that this doesn't guarantee acceptance or implementation at this stage. If we need any additional information or clarification, we'll be sure to reach out to you.

Jesus-QC avatar Oct 14 '25 09:10 Jesus-QC

We've reopened this suggestion to prevent confusion and duplicate posts. As stated before, the issue has been added to our internal tracker, but that does not guarantee acceptance nor implementation.

Axwabo avatar Apr 28 '26 07:04 Axwabo

could it be done with sending the hirerarchi of the gameobject?

michcio15 avatar Jul 05 '26 18:07 michcio15