Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

NetworkBehaviour.OnCheckObserver

public bool OnCheckObserver(Networking.NetworkConnection conn);

Parameters

connNetwork connection of a player.

Returns

bool True if the player can see this object.

Description

Callback used by the visibility system to determine if an observer (player) can see this object.

If this function returns true, the network connection will be added as an observer.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答