setEnabled

sets whether to enable inspector.