Operator implicit operator
implicit operator NetworkObject(NetworkObjectReference)
Implicitly convert Network
Declaration
public static implicit operator NetworkObject(NetworkObjectReference networkObjectRef)
Parameters
Type | Name | Description |
---|---|---|
Network |
networkObjectRef | The Network |
Returns
Type | Description |
---|---|
Network |
The Network |
implicit operator NetworkObjectReference(NetworkObject)
Implicitly convert Network
Declaration
public static implicit operator NetworkObjectReference(NetworkObject networkObject)
Parameters
Type | Name | Description |
---|---|---|
Network |
networkObject | The Network |
Returns
Type | Description |
---|---|
Network |
The Network |
implicit operator GameObject(NetworkObjectReference)
Implicitly convert Network
Declaration
public static implicit operator GameObject(NetworkObjectReference networkObjectRef)
Parameters
Type | Name | Description |
---|---|---|
Network |
networkObjectRef | The Network |
Returns
Type | Description |
---|---|
Game |
This returns the Game |
implicit operator NetworkObjectReference(GameObject)
Implicitly convert Game
Declaration
public static implicit operator NetworkObjectReference(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameObject | The Game |
Returns
Type | Description |
---|---|
Network |
The Network |