How make plugin button grey and uniteractive?

Hello, I’m making plugin about Terrain. And I want to make it openable only when script editor is closed, like this:
image
Can someone tell me, what I should do to achieve this?

https://create.roblox.com/docs/reference/engine/classes/PluginToolbarButton#ClickableWhenViewportHidden

When you make the ToolbarButton, set this property to false.

1 Like

Enabled disables the button entirely as it states:

The OP said they only want it to be enabled when the Script Editor is closed:

1 Like