Exemplo n.º 1
0
 GUIContent GetResTypeContent(AssetBundleResType resType)
 {
     if (resType == AssetBundleResType.None)
     {
         return(new GUIContent("Asset Bundle", AssetTreeManager.mIns.GetEditorTexture("Folder")));
     }
     return(new GUIContent(resType.ToString(), AssetTreeManager.mIns.GetEditorTexture(resType)));
 }
        public string GetIconName(AssetBundleResType resType)
        {
            string result;

            if (_resTypeDictionary.TryGetValue((int)resType, out result))
            {
                return(GetIconName(result));
            }
            return(GetIconName("Unknown"));
        }
 public Texture2D GetEditorTexture(AssetBundleResType resType)
 {
     return(EditorGUIUtility.FindTexture(GetIconName(resType)));
 }