Inpsector. Add a custom context menu to additional nodes

The custom node does not have custom context menu as it described in the debugLayer.show.

As I found in sources TreeItemSpecializedComponent:

return (
    <div className="meshTools">
        <TreeItemLabelComponent label={entity.name} onClick={() => this.onClick()} icon={faProjectDiagram} color="cornflowerblue" />
    </div>
);

there are no <ExtensionsComponent ...> after the TreeItemLabel as it make in all onther nodes. For example here is the render method for SkeletonTreeItemComponent:

return (
    <div className="skeletonTools">
        <TreeItemLabelComponent label={skeleton.name || "no name"} onClick={() => this.props.onClick()} icon={faSkull} color="gray" />
        {<ExtensionsComponent target={skeleton} extensibilityGroups={this.props.extensibilityGroups} />}
    </div>
);

Is it the bug? Or what is the reason why it work so?

And why the callback of inspectableCustomPropertiy does not call when value changes? How to set callback or observable to actual value?

cc @Deltakosh who should know what’s going on.

I would say it is a miss. Feel free to add it!

1 Like

Can you pinpoint where is it in your repro?

1 Like

Yeee!

2 Likes