UnityEditor.GameViewSizesMenuItemProvider.Remove C# (CSharp) Method

Remove() public method

public Remove ( int index ) : void
index int
return void
        public void Remove(int index)
        {
            if (index < this.m_GameViewSizeGroup.GetBuiltinCount())
            {
                Debug.LogError("Only custom game view sizes can be changed");
            }
            else
            {
                this.m_GameViewSizeGroup.RemoveCustomSize(index);
                ScriptableSingleton<GameViewSizes>.instance.SaveToHDD();
            }
        }