UnityEditor.ContainerWindow.Load C# (CSharp) Method

Load() private method

private Load ( bool loadPosition ) : void
loadPosition bool
return void
        private void Load(bool loadPosition)
        {
            if ((this.m_ShowMode != 4) && this.IsNotDocked())
            {
                string str = this.NotDockedWindowID();
                Rect pixelRect = this.m_PixelRect;
                if (loadPosition)
                {
                    pixelRect.x = EditorPrefs.GetFloat(str + "x", this.m_PixelRect.x);
                    pixelRect.y = EditorPrefs.GetFloat(str + "y", this.m_PixelRect.y);
                }
                pixelRect.width = Mathf.Max(EditorPrefs.GetFloat(str + "w", this.m_PixelRect.width), this.m_MinSize.x);
                pixelRect.width = Mathf.Min(pixelRect.width, this.m_MaxSize.x);
                pixelRect.height = Mathf.Max(EditorPrefs.GetFloat(str + "h", this.m_PixelRect.height), this.m_MinSize.y);
                pixelRect.height = Mathf.Min(pixelRect.height, this.m_MaxSize.y);
                this.m_PixelRect = pixelRect;
            }
        }