Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorUtility.SetObjectEnabled

static function SetObjectEnabled(target: Object, enabled: bool): void;
static void SetObjectEnabled(Object target, bool enabled);
static def SetObjectEnabled(target as Object, enabled as bool) as void

Description

Set the enabled state of the object.