[Unity][Heap sort]用Unity动态演示堆排序的过程 How Heap Sort Works 最近做了一个用Unity3D动态演示堆排序过程的程序. I've made this app to show how heap sort works recently. 效果图(Demo) 一图抵千言. A picture paints a thousand words. 堆排序(Heap Sort) 堆排序总是建立这样一个二叉树:其父结点总大于其子结点. Step 1: The fir
AssetBundles are files which you can export from Unity to contain assets of your choice. These files use a proprietary compressed format and can be loaded on demand in your application. This allows you to stream content like models, textures, audio c
在项目中有时会遇到批量生成Prefab的需求.于是写了一个编辑器,用来实现此功能. 在Hierarchy面板中选中多个GameObject,点击生成Prefab即可. 如果所选物体中包含自定义Mesh,需要先在指定目录生成Obj,再将Obj包含的网格赋值给新生成的Prefab. 编辑器脚本如下: using UnityEngine; using UnityEditor; using System.Collections; using System.IO; /// <summary> /// C
新项目使用Unity5.X,遇到了一些问题,其中就有Sprite的管理更新问题,查了一些资料,Mono推荐的是转为Prefab处理. 看了一些国外同行的处理方法,分析了一个编辑器插件脚本.学到了一些技巧,使用的话依然放在Editor目录下.总结在这里吧: using UnityEngine; using UnityEditor; using System.Collections; using System.Linq; public class SpriteToPrefab { /// <summ
using UnityEngine; using System.Collections; using System.IO; using System.Net; using System; using UnityEditor; public class WWWLoad : MonoBehaviour { //string urlPath = "http://www....."; string urlPath = @"http://localhost:8080/fbx/test.