2using System.Collections;
3using System.Reflection;
10 private Camera _camera;
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 _camera.enabled;
30 void OnSetEnabled(
object value)
32 _camera.enabled = (bool) value;
override void InitializeGUI()
Component target
The UnityEngine.Component being edited.
static void AddDiff(Component component, string name, object value)
static void RegisterState(IUndo target, string message)