4using System.Collections;
5using System.Collections.Generic;
6using System.Reflection;
40 foreach(Transform t
in transform)
41 pb_ObjectUtility.Destroy(t.gameObject);
53 foreach(pb_TypeInspector inspector
in gameObject.GetComponentsInChildren<pb_TypeInspector>(
false))
54 inspector.UpdateGUI();
59 pb_GUIUtility.AddVerticalLayoutGroup(gameObject);
61 foreach(PropertyInfo prop
in pb_Reflection.GetSerializableProperties(
target.GetType(), BindingFlags.Instance | BindingFlags.Public))
68 pb_TypeInspector typeInspector = pb_InspectorResolver.AddTypeInspector(
target, transform, property: prop);
69 typeInspector.onTypeInspectorSetValue = this.OnTypeInspectorSetValue;
77 foreach(FieldInfo fil
in target.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public))
82 pb_TypeInspector typeInspector = pb_InspectorResolver.AddTypeInspector(
target, transform, field : fil);
83 typeInspector.onTypeInspectorSetValue = this.OnTypeInspectorSetValue;
90 void OnTypeInspectorSetValue()
UnityEngine.Component Component
static readonly HashSet< string > ignoreProperties
Component target
The UnityEngine.Component being edited.
void SetComponent(Component target)
virtual void InitializeGUI()
virtual void OnComponentModified()