UnityEditor.ObjectSelector.WidePreview C# (CSharp) Method

WidePreview() private method

private WidePreview ( float actualSize, string s, Object o, EditorWrapper p ) : void
actualSize float
s string
o Object
p EditorWrapper
return void
        private void WidePreview(float actualSize, string s, Object o, EditorWrapper p)
        {
            float x = 5f;
            Rect position = new Rect(x, this.m_TopSize + x, actualSize - (x * 2f), actualSize - (x * 2f));
            Rect rect2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + ((this.m_PreviewSize - 75f) * 0.5f), ((base.m_Parent.window.position.width - this.m_PreviewSize) - 3f) - x, 75f);
            if ((p != null) && p.HasPreviewGUI())
            {
                p.OnPreviewGUI(position, this.m_Styles.previewTextureBackground);
            }
            else if (o != null)
            {
                this.DrawObjectIcon(position, this.m_ListArea.m_SelectedObjectIcon);
            }
            if (EditorGUIUtility.isProSkin)
            {
                EditorGUI.DropShadowLabel(rect2, s, this.m_Styles.smallStatus);
            }
            else
            {
                GUI.Label(rect2, s, this.m_Styles.smallStatus);
            }
        }