mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
13 lines
449 B
C#
13 lines
449 B
C#
using System;
|
|
|
|
namespace XNode {
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
|
|
public class CreateNodeMenuAttribute : Attribute {
|
|
public string menuName;
|
|
/// <summary> Manually supply node class with a context menu path </summary>
|
|
/// <param name="menuName"> Path to this node in the context menu. Null or empty hides it. </param>
|
|
public CreateNodeMenuAttribute(string menuName) {
|
|
this.menuName = menuName;
|
|
}
|
|
}
|
|
} |