NetworkElement Constructor (INetworkContainer, MonoBehaviour, BehaviorMode, Int32)
Initializes a new instance of the NetworkElement class with a MonoBehaviour and specified behavior mode.
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
public NetworkElement( INetworkContainer container, MonoBehaviour linkedObject, BehaviorMode mode, int networkId )
Parameters
- container
- Type: com.onlineobject.objectnet..::..INetworkContainer
The network container associated with this element.
- linkedObject
- Type: MonoBehaviour
The MonoBehaviour linked to this network element.
- mode
- Type: com.onlineobject.objectnet..::..BehaviorMode
The behavior mode for this network element (default is Both).
- networkId
- Type: Int32
The network identifier for this element (default is 0).