UnityEditor.NetworkManagerEditor.AddButton C# (CSharp) Method

AddButton() private method

private AddButton ( Rect rect, ReorderableList list ) : void
rect UnityEngine.Rect
list UnityEditorInternal.ReorderableList
return void
        internal void AddButton(Rect rect, ReorderableList list)
        {
            this.m_SpawnListProperty.arraySize++;
            list.index = this.m_SpawnListProperty.arraySize - 1;
            SerializedProperty arrayElementAtIndex = this.m_SpawnListProperty.GetArrayElementAtIndex(this.m_SpawnListProperty.arraySize - 1);
            if (arrayElementAtIndex.objectReferenceValue != null)
            {
                arrayElementAtIndex.objectReferenceValue = null;
            }
            this.m_SpawnList.index = this.m_SpawnList.count - 1;
        }