Dynamic context menu

Hi is it possible to create a dynamic context menu from a list at runtime? The problem we’re running into is that the attributes can’t be changed :slight_smile: which makes it somewhat of a pain so we’re having to manually a custom construct a menu to do all this which seems a little overkill. I’m messing around with MenuItem directly in script but can’t get anything to appear so assume that all the setup is done only directly through the MenuItem attributes at compile time…

You would have to do it manually anyway as the editor menues are static and can not be overriden dynamically nor are these menues present in the “runtime”

if you want to change context menue stuff for in-runtime things you should consider doing one within your game / applications code

Thanks for the reply, yep we figured as much. It’s just for an editorwindow not for the game per se but we’re halfway through building the new one so no worries :slight_smile:

G

With an editor window its naturally far less of a problem as its not runtime and does not require “cross border” (editor ↔ runtime) handling