PlayerNameBar
This will enable/disable this gameobject on other clients to best match the settings that are on the local client. It achieves this by watching the ClientConnection for the local client using the exposed delegates on the ClientConnection.
Public Virtual Methods
| Method | Description |
|---|---|
| void OwnerUpdatedTeam(string newTeamName) | This is for the local client's view only - This make this visible if you have set your displayOption to be FriendlyOnly or EnemyOnly, otherwise this is ignored. Make this gameobject active or inactive based on your desired team settings for other clients. So if another client is an enemy and you have it set to be visible to FriendlyOnly then this gameobject will be disabled. |
| void SetTeamBasedDisplaySettings(string newTeamName) | Same thing as OwnerUpdatedTeam except for other clients other than the local one. |
| void EnableNameBar(bool isEnabled) | If you want to enable/disable this gameobject. |