UnityEditor.ObjectSelector.PreviewArea C# (CSharp) Method

PreviewArea() private method

private PreviewArea ( ) : void
return void
        private void PreviewArea()
        {
            GUI.Box(new Rect(0f, this.m_TopSize, base.position.width, this.m_PreviewSize), "", this.m_Styles.previewBackground);
            if (this.m_ListArea.GetSelection().Length != 0)
            {
                EditorWrapper p = null;
                Object currentObject = GetCurrentObject();
                if (this.m_PreviewSize < 75f)
                {
                    string str;
                    if (currentObject != null)
                    {
                        p = this.m_EditorCache[currentObject];
                        string str2 = ObjectNames.NicifyVariableName(currentObject.GetType().Name);
                        if (p != null)
                        {
                            str = p.name + " (" + str2 + ")";
                        }
                        else
                        {
                            str = currentObject.name + " (" + str2 + ")";
                        }
                        str = str + "      " + AssetDatabase.GetAssetPath(currentObject);
                    }
                    else
                    {
                        str = "None";
                    }
                    this.LinePreview(str, currentObject, p);
                }
                else
                {
                    string infoString;
                    if (this.m_EditorCache == null)
                    {
                        this.m_EditorCache = new EditorCache(EditorFeatures.PreviewGUI);
                    }
                    if (currentObject != null)
                    {
                        p = this.m_EditorCache[currentObject];
                        string str4 = ObjectNames.NicifyVariableName(currentObject.GetType().Name);
                        if (p != null)
                        {
                            infoString = p.GetInfoString();
                            if (infoString != "")
                            {
                                string[] textArray1 = new string[] { p.name, "\n", str4, "\n", infoString };
                                infoString = string.Concat(textArray1);
                            }
                            else
                            {
                                infoString = p.name + "\n" + str4;
                            }
                        }
                        else
                        {
                            infoString = currentObject.name + "\n" + str4;
                        }
                        infoString = infoString + "\n" + AssetDatabase.GetAssetPath(currentObject);
                    }
                    else
                    {
                        infoString = "None";
                    }
                    if (this.m_ShowWidePreview.faded != 0f)
                    {
                        GUI.color = new Color(1f, 1f, 1f, this.m_ShowWidePreview.faded);
                        this.WidePreview(this.m_PreviewSize, infoString, currentObject, p);
                    }
                    if (this.m_ShowOverlapPreview.faded != 0f)
                    {
                        GUI.color = new Color(1f, 1f, 1f, this.m_ShowOverlapPreview.faded);
                        this.OverlapPreview(this.m_PreviewSize, infoString, currentObject, p);
                    }
                    GUI.color = Color.white;
                    this.m_EditorCache.CleanupUntouchedEditors();
                }
            }
        }