GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Documentation
  • User Manual
  • Script Reference
  • Download Unity
  • Unity Engine Documentation
  • UnityEngine
  • AddComponentMenu
  • AnchoredJoint2D
  • AndroidInput
  • AndroidJavaClass
  • AndroidJavaObject
  • AndroidJavaProxy
  • AndroidJNI
  • AndroidJNIHelper

This view

  • Original page
  • New address

GeezerVison is showing docs.unity.com — AddComponentMenu • UnityEngine • 6000.6 • Unity Editor

AddComponentMenu

The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component-\>Scripts" menu.
Read time 3 minutes
Last updated 2 months ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
  • Inherits from: Attribute
public sealed class AddComponentMenu : Attribute

Remarks

You can use this to organize the Component menu better and improve the workflow of adding scripts.

Examples

using UnityEngine;[AddComponentMenu("Transform/Follow Transform")]public class FollowTransform : MonoBehaviour{}

Constructors

Constructor

Description

AddComponentMenu(System.String)Add an item in the Component menu.
AddComponentMenu(System.String,System.Int32)Add an item in the Component menu.

Properties

Property

Description

componentOrderThe order of the component in the component menu (lower values appear higher in the menu).

Inheritance

Inherited Members

  • Attribute.GetCustomAttributes(MemberInfo, Type)
  • Attribute.GetCustomAttributes(MemberInfo, Type, bool)
  • Attribute.GetCustomAttributes(MemberInfo)
  • Attribute.GetCustomAttributes(MemberInfo, bool)
  • Attribute.IsDefined(MemberInfo, Type)
  • Attribute.IsDefined(MemberInfo, Type, bool)
  • Attribute.GetCustomAttribute(MemberInfo, Type)
  • Attribute.GetCustomAttribute(MemberInfo, Type, bool)
  • Attribute.GetCustomAttributes(ParameterInfo)
  • Attribute.GetCustomAttributes(ParameterInfo, Type)
  • Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
  • Attribute.GetCustomAttributes(ParameterInfo, bool)
  • Attribute.IsDefined(ParameterInfo, Type)
  • Attribute.IsDefined(ParameterInfo, Type, bool)
  • Attribute.GetCustomAttribute(ParameterInfo, Type)
  • Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
  • Attribute.GetCustomAttributes(Module, Type)
  • Attribute.GetCustomAttributes(Module)
  • Attribute.GetCustomAttributes(Module, bool)
  • Attribute.GetCustomAttributes(Module, Type, bool)
  • Attribute.IsDefined(Module, Type)
  • Attribute.IsDefined(Module, Type, bool)
  • Attribute.GetCustomAttribute(Module, Type)
  • Attribute.GetCustomAttribute(Module, Type, bool)
  • Attribute.GetCustomAttributes(Assembly, Type)
  • Attribute.GetCustomAttributes(Assembly, Type, bool)
  • Attribute.GetCustomAttributes(Assembly)
  • Attribute.GetCustomAttributes(Assembly, bool)
  • Attribute.IsDefined(Assembly, Type)
  • Attribute.IsDefined(Assembly, Type, bool)
  • Attribute.GetCustomAttribute(Assembly, Type)
  • Attribute.GetCustomAttribute(Assembly, Type, bool)
  • Attribute.Equals(Object)
  • Attribute.GetHashCode()
  • Attribute.Match(Object)
  • Attribute.IsDefaultAttribute()
  • Attribute.TypeId()


Report a problem with this page
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.