Class NetworkPrefab
Spawnable prefab with network components.
Inherited Members
Namespace: SuperNet.Unity.Components
Assembly: cs.temp.dll.dll
Syntax
public sealed class NetworkPrefab : NetworkComponent
  Fields
SyncChannel
Network channel to use.
Declaration
public byte SyncChannel
  Field Value
| Type | Description | 
|---|---|
| System.Byte | 
Properties
Spawnee
The peer that spawned this prefab or null if none.
Declaration
public Peer Spawnee { get; }
  Property Value
| Type | Description | 
|---|---|
| Peer | 
Spawner
Network spawner responsible for this prefab or null if not spawned.
Declaration
public NetworkSpawner Spawner { get; }
  Property Value
| Type | Description | 
|---|---|
| NetworkSpawner | 
Methods
GetNetworkComponents()
Return all components managed by this prefab.
Declaration
public IReadOnlyList<NetworkComponent> GetNetworkComponents()
  Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<NetworkComponent> | All prefab components.  | 
      
OnDestroy()
Declaration
protected override void OnDestroy()
  Overrides
OnNetworkDisconnect(Peer)
Declaration
public override void OnNetworkDisconnect(Peer peer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Peer | peer | 
Overrides
Start()
Declaration
protected override void Start()