forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddComponentMenu.cs
More file actions
60 lines (54 loc) · 1.81 KB
/
AddComponentMenu.cs
File metadata and controls
60 lines (54 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Decompiled with JetBrains decompiler
// Type: UnityEngine.AddComponentMenu
// Assembly: UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A8FF7A2C-E4EE-4232-AB17-3FCABEC16496
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.dll
using System;
namespace UnityEngine
{
/// <summary>
/// <para>The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component->Scripts" menu.</para>
/// </summary>
public sealed class AddComponentMenu : Attribute
{
private string m_AddComponentMenu;
private int m_Ordering;
public string componentMenu
{
get
{
return this.m_AddComponentMenu;
}
}
/// <summary>
/// <para>The order of the component in the component menu (lower is higher to the top).</para>
/// </summary>
public int componentOrder
{
get
{
return this.m_Ordering;
}
}
/// <summary>
/// <para>Add an item in the Component menu.</para>
/// </summary>
/// <param name="menuName">The path to the component.</param>
/// <param name="order">Where in the component menu to add the new item.</param>
public AddComponentMenu(string menuName)
{
this.m_AddComponentMenu = menuName;
this.m_Ordering = 0;
}
/// <summary>
/// <para>Add an item in the Component menu.</para>
/// </summary>
/// <param name="menuName">The path to the component.</param>
/// <param name="order">Where in the component menu to add the new item.</param>
public AddComponentMenu(string menuName, int order)
{
this.m_AddComponentMenu = menuName;
this.m_Ordering = order;
}
}
}