Skip to content

Home > @esengine/ecs-framework-monorepo > NetworkIdentity > shouldSyncToClient

NetworkIdentity.shouldSyncToClient() method

检查是否应该同步给指定客户端

Signature:

typescript
shouldSyncToClient(clientId: string, distance?: number): boolean;

Parameters

Parameter

Type

Description

clientId

string

distance

number

(Optional)

Returns:

boolean

基于 MIT 许可证发布