Skip to content

CwlContextMenu

Namespace: Cwl.Helper.Unity;

Qol attribute to register a method to system context menu.

cs

[CwlContextMenu("SubmenuA/SubmenuB/Btn C", "LangGeneral_id_or_text_or_omit")]
private static void MyTestMethod()
{
    // ...
}

The registered method's return value will be displayed as string on screen, if any provided.