41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x020003BD RID: 957
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|
[RequiredByNativeCode]
|
|
public sealed class ContextMenu : Attribute
|
|
{
|
|
// Token: 0x060037BD RID: 14269 RVA: 0x0005EF1C File Offset: 0x0005D11C
|
|
public ContextMenu(string itemName)
|
|
: this(itemName, false)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060037BE RID: 14270 RVA: 0x0005EF28 File Offset: 0x0005D128
|
|
public ContextMenu(string itemName, bool isValidateFunction)
|
|
: this(itemName, isValidateFunction, 1000000)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060037BF RID: 14271 RVA: 0x0005EF38 File Offset: 0x0005D138
|
|
public ContextMenu(string itemName, bool isValidateFunction, int priority)
|
|
{
|
|
this.menuItem = itemName;
|
|
this.validate = isValidateFunction;
|
|
this.priority = priority;
|
|
}
|
|
|
|
// Token: 0x04000CA9 RID: 3241
|
|
public readonly string menuItem;
|
|
|
|
// Token: 0x04000CAA RID: 3242
|
|
public readonly bool validate;
|
|
|
|
// Token: 0x04000CAB RID: 3243
|
|
public readonly int priority;
|
|
}
|
|
}
|