SetItemTypeEnabled

Method

Set the enabled state for items by their type. This overrides individual item enabled states.

Definition

void SetItemTypeEnabled(ItemType itemType, bool enabled, string disabledMessage)
void SetItemTypeEnabled(ItemType itemType, bool enabled, string disabledMessage)

Parameters

ParameterDescription
ItemType itemType

Type of the item

bool enabled

Enabled or disabled

string disabledMessage

The tooltip or explanation message to show to the user explaining why the item is disabled. Maximum 50 characters.