Class NetworkVariableSettings
The settings class used by the build in NetworkVar implementations
Inherited Members
Namespace: MLAPI.NetworkVariable
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public class NetworkVariableSettings
Constructors
NetworkVariableSettings()
Constructs a new NetworkVariableSettings instance
Declaration
public NetworkVariableSettings()
Fields
ReadPermission
Defines the read permissions for this var
Declaration
public NetworkVariablePermission ReadPermission
Field Value
Type | Description |
---|---|
NetworkVariablePermission |
ReadPermissionCallback
The delegate used to evaluate read permission when the "Custom" mode is used
Declaration
public NetworkVariablePermissionsDelegate ReadPermissionCallback
Field Value
Type | Description |
---|---|
NetworkVariablePermissionsDelegate |
SendNetworkChannel
The name of the channel to use for this variable. Variables with different channels will be split into different packets
Declaration
public NetworkChannel SendNetworkChannel
Field Value
Type | Description |
---|---|
NetworkChannel |
SendTickrate
The maximum times per second this var will be synced. A value of 0 will cause the variable to sync as soon as possible after being changed. A value of less than 0 will cause the variable to sync only at once at spawn and not update again.
Declaration
public float SendTickrate
Field Value
Type | Description |
---|---|
float |
WritePermission
Defines the write permissions for this var
Declaration
public NetworkVariablePermission WritePermission
Field Value
Type | Description |
---|---|
NetworkVariablePermission |
WritePermissionCallback
The delegate used to evaluate write permission when the "Custom" mode is used
Declaration
public NetworkVariablePermissionsDelegate WritePermissionCallback
Field Value
Type | Description |
---|---|
NetworkVariablePermissionsDelegate |