UnityEditor.Editor.GetInfoString C# (CSharp) Method

GetInfoString() public method

Implement this method to show asset information on top of the asset preview.

public GetInfoString ( ) : string
return string
        public virtual string GetInfoString()
        {
            return this.preview.GetInfoString();
        }

Usage Example

コード例 #1
0
        public override string GetInfoString()
        {
            Editor selectedMaterialInspector = this.GetSelectedMaterialInspector();

            if (selectedMaterialInspector)
            {
                return(selectedMaterialInspector.targetTitle + "\n" + selectedMaterialInspector.GetInfoString());
            }
            return(string.Empty);
        }
All Usage Examples Of UnityEditor.Editor::GetInfoString