API Referenceglobal
public abstract interface Sandbox.Component.INetworkSpawn
A `Sandbox.Component` with this interface can listen for when a GameObject in its ancestors has been network spawned.
Related Guides
Broader workflow and conceptual references connected to this API.
Network Events
Your games will likely want to react to people joining and leaving the game. To help with this you can implement Component.INetworkListener or Component.INetworkSpawn on a component and place it in the scene.
Component Interfaces
There are various interfaces that can be given to components for specific purposes.
Methods
Showing 1 methods
public virtual void OnNetworkSpawn(Sandbox.Connection owner)
Called when this object is spawned on the network.
Implementations
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Component.INetworkSpawn |