Table of Contents

Class TypeSelectableMenuPrefixAttribute

Namespace
ElectricDrill.AstraRpgFramework.Utils
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Assembly-level attribute that prepends a prefix to the menu path of every type in the declaring assembly when shown in the type selection dropdown. Lets sibling/external packages be grouped under a single label without annotating each concrete class.

Apply via [assembly: TypeSelectableMenuPrefix("Modifiers")] in any file of the target assembly. The prefix is combined with any per-type TypeSelectableMenuAttribute path and the display name, e.g. "Modifiers/Conditions/Tag/TagPresent".

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class TypeSelectableMenuPrefixAttribute : Attribute
Inheritance
object
Attribute
TypeSelectableMenuPrefixAttribute

Constructors

TypeSelectableMenuPrefixAttribute(string)

public TypeSelectableMenuPrefixAttribute(string prefix)

Parameters

prefix string

Slash-separated prefix (no leading/trailing slash required).

Properties

Prefix

Prefix prepended to every type menu path in this assembly, e.g. "Modifiers".

public string Prefix { get; }

Property Value

string