Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetObjectEnabled(Object, bool)

Set the enabled state of the object.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetObjectEnabled(Object target, bool enabled)

Parameters

target


enabled