LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkConnection.SetChannelOption

public bool SetChannelOption(int channelId, Networking.ChannelOption option, int value);

Parameters

channelIdThe channel the option will be set on.
optionThe option to set.
valueThe value for the option.

Returns

bool True if the option was set.

Description

This sets an option on the network channel.

Channel options are usually advanced tuning parameters.