unity 隐藏某个对象
1.设置坐标,将坐标设置到屏幕外(LocalPosition = new Vector3(10000, 0, 0))
2.设置Layer,原理是相机会剔除指定的层级,相机Camera的Culling Mask
3.render.enable
4.设置透明度(ngui的panel,ugui的CanvasGroup)
5.设置缩放,直接设置成0
6.直接删除不需要的对象:Destory
一直想把之前工作、学习时记录的文档整理到博客上,一方面温故而知新,一方面和大家一起学习 -程序小白