Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • 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.