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

NetworkIdentity.RemoveClientAuthority

public bool RemoveClientAuthority(Networking.NetworkConnection conn);

Parameters

connThe connection of the client to remove authority for.

Returns

bool True if authority is removed.

Description

Removes ownership for an object for a client by its conneciton.

This applies to objects that had authority set by AssignClientAuthority, or NetworkServer.SpawnWithClientAuthority. Authority cannot be removed for player objects.

Did you find this page useful? Please give it a rating: