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