UnityEditor.ObjectPreview.GetPreviewTitle C# (CSharp) Method

GetPreviewTitle() public method

Override this method if you want to change the label of the Preview area.

public GetPreviewTitle ( ) : GUIContent
return UnityEngine.GUIContent
        public virtual GUIContent GetPreviewTitle()
        {
            GUIContent content = new GUIContent();
            if (this.m_Targets.Length == 1)
            {
                content.text = this.target.name;
                return content;
            }
            content.text = this.m_Targets.Length + " ";
            if (this.target is MonoBehaviour)
            {
                content.text = content.text + MonoScript.FromMonoBehaviour(this.target as MonoBehaviour).GetClass().Name;
            }
            else
            {
                content.text = content.text + ObjectNames.NicifyVariableName(ObjectNames.GetClassName(this.target));
            }
            content.text = content.text + "s";
            return content;
        }