- 21
- 0
- 约小于1千字
- 约 1页
- 2021-12-01 发布于江苏
- 举报
Unity3D脚本代码按键自动换材质
function Update () {
if(Input.GetKey(KeyCode.Alpha1)){
Debug.Log(111);
在材质库中加载材质
this.renderer.material = Resources.Load(2);
}
if(Input.GetKey(KeyCode.Alpha2)){
Debug.Log(333);
在材质库中加载材质
this.r
原创力文档

文档评论(0)