Skip to content

Add a NetworkBehaviour component after calling NetworkObject.Spawn() #899

@TheCaveOfWonders

Description

@TheCaveOfWonders

Is your feature request related to a problem? Please describe.
We currently cannot dynamically add NetworkBehaviours to a GameObject AFTER having spawned the object on the clients, so after calling NetworkObject.Spawn() for that object.

Describe the solution you'd like
Add a NetworkBehaviour AFTER the GameObject in question already spawned on the clients.

Additional context
One of the goals is to have the server spawn prefab GameObjects on the clients, and then add NetworkBehaviours to them pending some conditions.

If this is something that will not or cannot be supported -at least not in the near future- please let me know and I'll try to design my way around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature, request or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions