ExtractTooltip() public static method

public static ExtractTooltip ( string uiString ) : string
uiString string
return string
Exemplo n.º 1
0
        public static GUIContent GetGUIContent(string id)
        {
            if (TreeEditorHelper.s_Dictionary.ContainsKey(id))
            {
                return(TreeEditorHelper.s_Dictionary[id]);
            }
            string uIString = TreeEditorHelper.GetUIString(id);

            if (uIString == null)
            {
                return(new GUIContent(id, string.Empty));
            }
            GUIContent gUIContent = new GUIContent(TreeEditorHelper.ExtractLabel(uIString), TreeEditorHelper.ExtractTooltip(uIString));

            TreeEditorHelper.s_Dictionary.Add(id, gUIContent);
            return(gUIContent);
        }