GetInfoString() public method

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

public GetInfoString ( ) : string
return string
        public override string GetInfoString()
        {
            Editor selectedMaterialInspector = this.GetSelectedMaterialInspector();

            if (selectedMaterialInspector)
            {
                return(selectedMaterialInspector.targetTitle + "\n" + selectedMaterialInspector.GetInfoString());
            }
            return(string.Empty);
        }
        public override string GetInfoString()
        {
            Editor materialInspector = this.GetSelectedMaterialInspector();

            if ((bool)((UnityEngine.Object)materialInspector))
            {
                return(materialInspector.targetTitle + "\n" + materialInspector.GetInfoString());
            }
            return(string.Empty);
        }
Ejemplo n.º 3
0
        public override string GetInfoString()
        {
            Editor selectedMaterialInspector = this.GetSelectedMaterialInspector();
            string result;

            if (selectedMaterialInspector)
            {
                result = selectedMaterialInspector.targetTitle + "\n" + selectedMaterialInspector.GetInfoString();
            }
            else
            {
                result = string.Empty;
            }
            return(result);
        }
Ejemplo n.º 4
0
 public string GetInfoString()
 {
     return(editor.GetInfoString());
 }