Normally I can set the GUI.enabled state to cause the controls to be drawn in a disabled state if needed.
But GUI.enabled = false will cause the entire GUILayout.Toolbar to show as disabled. How can I disable and enable individual items?
Cheers
Normally I can set the GUI.enabled state to cause the controls to be drawn in a disabled state if needed.
But GUI.enabled = false will cause the entire GUILayout.Toolbar to show as disabled. How can I disable and enable individual items?
Cheers
GUILayout.Toolbar doesn’t have an option to enable/disable individual items. If you’re using images instead of text you could pass in a different image when a particular button is disabled.
But probably better to use GUILayout.BeginHorizontal instead, then insert buttons one by one with GUILayout.Button. Use the style parameter to control how they look, and ignore clicks on buttons you want disabled.