安装unity 为什么C盘越来越大?如何处理?
因为unity 的GI cache 默认在 C:\Users\lenovo\AppData\LocalLow\Unity\Caches\GiCache,处理方法,Edit-> Preferences->GI Cache->选中Custom cache location 复选框,选择一个空间大的目录即可,C盘的缓存记得删干净!黄色加亮是错误警告,error严重程度高,分别为
1) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(27,74): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)
2) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(130,73): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)
3) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(177,30): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `SetTriangleStrip' and no extension method `SetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)
总之都是方法名变了的错。
把GetTriangleStrip改成GetTriangles,对应着SetTriangleStrip也要改成SetTriangles。
3.为GameObject 添加角色控制器,可添加各种组件
@script RequireComponent(CharacterController)