public void OnGUI(Rect position) { if (this.m_ListenersArray == null || !this.m_ListenersArray.isArray) { return; } this.m_DummyEvent = UnityEventDrawer.GetDummyEvent(this.m_Prop); if (this.m_DummyEvent == null) { return; } if (this.m_Styles == null) { this.m_Styles = new UnityEventDrawer.Styles(); } if (this.m_ReorderableList == null) { return; } int indentLevel = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; this.m_ReorderableList.DoList(position); EditorGUI.indentLevel = indentLevel; }
public void OnGUI(Rect position) { if (this.m_ListenersArray != null && this.m_ListenersArray.isArray) { this.m_DummyEvent = UnityEventDrawer.GetDummyEvent(this.m_Prop); if (this.m_DummyEvent != null) { if (this.m_ReorderableList != null) { int indentLevel = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; this.m_ReorderableList.DoList(position); EditorGUI.indentLevel = indentLevel; } } } }