Version: 2017.2

EditorUtility.SetObjectEnabled

Switch to Manual
public static void SetObjectEnabled (Object target, bool enabled);

Description

Set the enabled state of the object.