Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

NetworkBehaviour.OnStartAuthority

Switch to Manual
public function OnStartAuthority(): void;

Description

This is invoked on behaviours that haev authority, based on context and the LocalPlayerAuthority value on the NetworkIdentity.

This is called after OnStartServer and OnStartClient.