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

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkIdentity.localPlayerAuthority

public bool localPlayerAuthority;

Description

localPlayerAuthority means that the client of the "owning" player has authority over their own player object.

Authority for this object will be on the player's client. So hasAuthority will be true on that client - and false on the server and on other clients.

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