Class NetworkVariableRay
A NetworkVariable that holds rays and support serialization
Implements
Inherited Members
Namespace: MLAPI.NetworkVariable
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
[Serializable]
public class NetworkVariableRay : NetworkVariable<Ray>, INetworkVariable
Constructors
NetworkVariableRay()
Creates a NetworkVariable with the default value and settings
Declaration
public NetworkVariableRay()
NetworkVariableRay(NetworkVariableSettings)
Creates a NetworkVariable with the default value and custom settings
Declaration
public NetworkVariableRay(NetworkVariableSettings settings)
Parameters
Type | Name | Description |
---|---|---|
NetworkVariableSettings | settings | The settings to use for the NetworkVariable |
NetworkVariableRay(NetworkVariableSettings, Ray)
Creates a NetworkVariable with a custom value and custom settings
Declaration
public NetworkVariableRay(NetworkVariableSettings settings, Ray value)
Parameters
Type | Name | Description |
---|---|---|
NetworkVariableSettings | settings | The settings to use for the NetworkVariable |
Ray | value | The initial value to use for the NetworkVariable |
NetworkVariableRay(Ray)
Creates a NetworkVariable with a custom value and the default settings
Declaration
public NetworkVariableRay(Ray value)
Parameters
Type | Name | Description |
---|---|---|
Ray | value | The initial value to use for the NetworkVariable |