Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

InitializeOnLoadAttribute

Namespace: UnityEditor

Description

Allow an editor class to be initialized when Unity loads without action from the user.

See the manual page about [wiki:RunningEditorCodeOnLaunch|running editor code on launch] for further details.