Is your feature request related to a problem? Please describe.
I would like to generate prefabs procedurally at runtime.
I can easily register them with NetworkManager.PrefabHandler.AddHandler.
The only missing part is that I can't set NetworkObject.GlobalObjectIdHash because it's internal.
Describe the solution you'd like
I understand exposing NetworkObject.GlobalObjectIdHash might be a problem (it's advanced use case and if public on NetworkObject, user might think it's OK to edit it in typical scenario).
Maybe adding it in a more specific location such as a method in NetworkPrefabHandler would be very helpful.
Describe alternatives you've considered
Currently I use reflection to set it...
Is your feature request related to a problem? Please describe.
I would like to generate prefabs procedurally at runtime.
I can easily register them with
NetworkManager.PrefabHandler.AddHandler.The only missing part is that I can't set
NetworkObject.GlobalObjectIdHashbecause it's internal.Describe the solution you'd like
I understand exposing
NetworkObject.GlobalObjectIdHashmight be a problem (it's advanced use case and if public onNetworkObject, user might think it's OK to edit it in typical scenario).Maybe adding it in a more specific location such as a method in
NetworkPrefabHandlerwould be very helpful.Describe alternatives you've considered
Currently I use reflection to set it...