private GetContentIcon ( string iconName, string tooltip ) : |
||
iconName | string | |
tooltip | string | |
Résultat |
private GUIContent GetContentIcon(string iconName, string tooltip)
{
if(!_contentCache.Contains(iconName)){
var texture = _textureDatabase.GetRelativeTexture (iconName);
_contentCache [iconName] = new GUIContent (texture, tooltip);
}
return _contentCache[iconName];
}