TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer.GetContentIcon C# (CSharp) Method

GetContentIcon() private method

private GetContentIcon ( string iconName, string tooltip ) : GUIContent
iconName string
tooltip string
return UnityEngine.GUIContent
        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];
        }