Sfoglia il codice sorgente

优化对象池可视化GameObject

ks 7 anni fa
parent
commit
e2c172709d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Unity/Assets/Model/Base/Object/ObjectPool.cs

+ 3 - 0
Unity/Assets/Model/Base/Object/ObjectPool.cs

@@ -96,6 +96,9 @@ namespace ETModel
             {
                 queue = new ComponentQueue(type.Name);
 	            queue.Parent = this;
+#if !SERVER
+	            queue.GameObject.name = type.Name;
+#endif
 				this.dictionary.Add(type, queue);
             }
             queue.Enqueue(obj);