DisableColor in Grid

Can’t get DisableColor or DisableColorItem to work after onPointerUpObservable is called.

Also, other than lower scaling # s of each button, is there a way put margins easily in a Grid.

Thank’s

Checked on the code, DisabledColor only applies to Button:

Babylon.js/rectangle.ts at master · BabylonJS/Babylon.js (github.com)

And DisabledColorItem only applies to a checked Checkbox:

Babylon.js/checkbox.ts at master · BabylonJS/Babylon.js (github.com)

@sebavan @Deltakosh @RaananW I see these two properties are quite “old” but haven’t been implemented on the Control class itself, maybe it would be better to deprecate them?

About the margins question, I’ll tag our GUI expert @msDestiny14 :smiley:

Thank’s a lot, that makes sense.

I think they have to stay in for back compat but you could definitely add a message in the code doc.

1 Like