Unity - コンポーネントの動作に関する Attribute

Unity では、Attribute(属性)と呼ばれる対象の変数やクラスに情報を付与する機能があります。本記事では、コンポーネントの動作に関わる Attribute である RequireComponent, DisallowMultipleComponent, ContextMenu, ContextMenuAttribute を紹介します。