本文主要是介绍Unity3d爬坑记—'physicMaterial' is not a member of 'UnityEngine.TerrainData'. 报错!!,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误代码如下
GetComponent ( Terrain ) . terrainData . physicMaterial . dynamicFriction
必须 改为
collider. material . dynamicFriction
错误代码
GetComponent ( Terrain ) . terrainData . physicMaterial
必须改为
collider. material
这篇关于Unity3d爬坑记—'physicMaterial' is not a member of 'UnityEngine.TerrainData'. 报错!!的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!