お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Namespace: UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close"Component->Scripts"メニューに項目を追加する代わりに、コンポーネントメニューに項目を追加することができます。
ワークフローを改善するためのスクリプトを追加した際、コンポーネントメニューに項目を追加する場合に使用します。重要:再起動が必要です。 重要:再起動が必要です。
// Javascript example @script AddComponentMenu ("Transform/Follow Transform") class FollowTransform extends MonoBehaviour { }
// C# example: [AddComponentMenu("Transform/Follow Transform")] public class FollowTransform : MonoBehaviour { }
componentOrder | コンポーネントメニューの順序(昇順) |
AddComponentMenu | スクリプトは menuName に従ってコンポーネントメニューに配置されます |