public void ApplyDataToInspector() { if (autoComponentInspector == null) { autoComponentInspector = ScriptableObject.CreateInstance("AutoComponentInspector") as AutoComponentInspector; } autoComponentInspector.autoComponent = this; }