ARinChina-增强现实中国技术论坛

标题: ean Pool v1.0.3 (Dec 11, 2015) 对象池 [打印本页]

作者: yanjianghao    时间: 2016-4-24 23:06
标题: ean Pool v1.0.3 (Dec 11, 2015) 对象池




Pooling is where you recycle unused GameObjects instead of constantly using Instantiate and Destroy.
  
To use it, all you have to do is replace your Instantiate calls with Lean.LeanPool.Spawn calls, and your Destroy calls with Lean.LeanPool.Despawn calls, and it will work like magic.
  
Lean Pool also comes with more advanced settings, such as the ability
to preload a certain amount of prefab clones, the ability to specify a
maximum amount of prefab clones that can be spawned, and the method used
to notify prefab clones about their pooling.
  
Lean Pool is designed to work with both GameObjects and Components,
and allows you to easily add support for custom pool handling, e.g.
resetting a Rigidbody's velocity (this script comes included).
脚本下载:





欢迎光临 ARinChina-增强现实中国技术论坛 (http://dev.arinchina.com/) Powered by Discuz! X3.2