Skip to content

It should be possible to find network objects using their ID #871

@ashkan-saeedi-mazdeh

Description

@ashkan-saeedi-mazdeh

Is your feature request related to a problem? Please describe.
This is mostly a convenience and resource saving feature.
I want to find NetworkObjects using the object id sent over the network and MLAPI of course contains the list.

Describe the solution you'd like
Expose the list to the users by using NetworkManager.GetNetworkObject(objectId); or somethign similar so we don't have to maintain a redundant separate list.

Describe alternatives you've considered
I can add a NetworkTracked component to my objects and maintain the list myself.
it will be redoing some done work and an additional list in memory and I might get Network life-cycle callbacks wrong.

Additional context
You need this when an RPC should work on multiple objects or has to work at least on one object other than the one it is being called on.

Metadata

Metadata

Assignees

Labels

type:supportQuestions or other support

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions