Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

PlayerSettings.XboxOne.GetSocketDefinition

Предложить изменения

Успех!

Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.

Закрыть

Ошибка внесения изменений

По определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.

Закрыть

Отменить

Руководство
public static function GetSocketDefinition(name: string, out port: string, out protocol: int, out usages: int[], out templateName: string, out sessionRequirment: int, out deviceUsages: int[]): void;
public static void GetSocketDefinition(string name, out string port, out int protocol, out int[] usages, out string templateName, out int sessionRequirment, out int[] deviceUsages);

Параметры

name The name of the socket description.
port The port or port range the socket can use.
protocol The protocol the socket uses.
usages The allowed usage flags for this socket description.
templateName The name of the device association template.
sessionRequirment Mutiplayer requirement setting for the device association template.
deviceUsages The allowed usage flags for the device association template.

Описание

Get the values for the socket description with the given name.

The name must be a value found in the PlayerSettings.XboxOne.SocketNames array. Please see the Secure Device Socket Description section in the Xbox One Player Settings documentation for more details on the parameters.