NetworkPeer 对象是网络对象的最基础类型。
概要
属性
方法
SetOutgoingKBPSLimit
void
设置 Roblox 可以使用的最大出口带宽。
参数
返回
void
代码示例
The following code, when ran from the command bar or a plugin, would limit bandwidth to 1KBPS.
NetworkPeer:SetOutgoingKBPSLimit
local NetworkClient = game:GetService("NetworkClient")
NetworkClient:SetOutgoingKBPSLimit(1)