Skip to content

SetMaterialByNameOrIndex ​

所属类:


描述 ​

设置材质


参数 ​

名称
类型
默认
描述
findKeystring名称或者序号字符串
byNameboolfindKey是否为名称
isSkinMeshRenderbool是否查找SkinMeshRender
materialIndexint下标
resIdstring材质资源id
callbackfunctionlua回调