文档

Unity Engine

Unity Engine

GetPort()

Retrieves the port where the ChannelService runs. This port is chosen randomly when the ChannelService first starts. Alternatively you can specify the port from the command line, using the --ump-channel-service-port \<portNumber\> switch.
阅读时间1 分钟最后更新于 2 小时前

Definition

public static int GetPort()

Returns

Type

Description

intThe port number of the ChannelService.