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

Script language

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

SyncVarAttribute.hook

public string hook;

Description

The hook attribute can be used to specify a function to be called when the sync var changes value on the client.