2using System.Collections;
3using System.Reflection;
10 private GameObject _go;
14 _go = ((Transform)
target).gameObject;
16 pb_GUIUtility.AddVerticalLayoutGroup(gameObject);
18 pb_TypeInspector enabled_inspector = pb_InspectorResolver.GetInspector(typeof(
bool));
20 enabled_inspector.Initialize(
"Enabled", UpdateEnabled, OnSetEnabled);
22 enabled_inspector.transform.SetParent(transform);
25 object UpdateEnabled()
27 return _go.activeSelf;
30 void OnSetEnabled(
object value)
32 _go.SetActive((
bool) value);
Component target
The UnityEngine.Component being edited.
override void InitializeGUI()
static void AddDiff(Component component, string name, object value)
static void RegisterState(IUndo target, string message)