Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

InitializeOnLoadAttribute

class in UnityEditor

マニュアルに切り替える

説明

エディタークラスを Unity 起動時に初期化します。(ユーザーのアクションは不要)

Note that static constructors with this attribute are called when Unity starts and when Run is pressed. In this second case the Unity runtime is intialised and this is treated as a Load.
機能の詳細については 起動時にエディターコードをロード を参照してください。