瀏覽代碼

地图添加默认纹理

Void_F 10 月之前
父節點
當前提交
106dee43d4
共有 3 個文件被更改,包括 105 次插入1 次删除
  1. 2 0
      Assets/Prefabs/Http.prefab
  2. 100 1
      Assets/Scene 1.unity
  3. 3 0
      Assets/Scripts/TextureLoadHelp.cs

+ 2 - 0
Assets/Prefabs/Http.prefab

@@ -57,4 +57,6 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: c4c64a63757f2a4418f8b37033c70182, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
+  currentTotalSize: 0
   maxSize: 200
+  map_def: {fileID: 2800000, guid: eb17efcc12b7ab24985609302899caee, type: 3}

文件差異過大導致無法顯示
+ 100 - 1
Assets/Scene 1.unity


+ 3 - 0
Assets/Scripts/TextureLoadHelp.cs

@@ -21,6 +21,8 @@ public class TextureLoadHelp : MonoBehaviour
     private Dictionary<string, AssetBundle> loadDoneABList;
     private Dictionary<string, int> loadingABList;
 
+    public Texture map_def;
+    
     private void Awake()
     {
         _Instance = this;
@@ -67,6 +69,7 @@ public class TextureLoadHelp : MonoBehaviour
             mat.mainTexture = value.tex;
             return 0;
         }
+        mat.mainTexture = map_def;
         long loadId = GetDownId();
         waitLoadImgActionList.Add(loadId, mat);
         StartCoroutine(DownLoadTex_AB(ab_Name,FileName,loadId));

部分文件因文件數量過多而無法顯示