void OnGUI() { if (Target != null && serializedObject != null) { m_scrollValue = GUILayout.BeginScrollView(m_scrollValue, false, true); AdapterInspector.SetTarget(Target, serializedObject); GUILayout.EndScrollView(); } }
public override void OnInspectorGUI() { //try //{ if (GUILayout.Button("窗口") || (windows != null && windows.winState == 2)) { windows = AdapterInspectorWindows.ShowWindows(target, serializedObject, CloseWindows); } AdapterInspector.SetTarget(target, serializedObject); //} //catch (Exception e) //{ // Debug.LogWarning(e.ToString()); //} }