using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
//public GameObject F;
public Texture T;
public MeshRenderer meshRender;
Texture tempP;
// Use this for initialization
void Start()
{
tempP = Resources.Load<Texture>("hello");
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.K))
{
//F.GetComponent<SkinnedMeshRenderer>().mateal.mainTexture =T ;
meshRender.material.mainTexture = tempP;
}
}
}
实现点击换贴图的功能,不过洋哥的意思是最终要切换表情时切换法线贴图 ,对于C#本来就是小白,而且有丢了快一年的我来说,我只能告诉他这个可以有,不过是程序的事啊~洋哥说你不就是程序吗。。。。好吧,写写看,一写就是三个多小时。。。从找面板显示的地方怎么写,到怎么获取面板参数,怎么调用。。。。好吧一系列下来我还是失败了。。。最后还是找程序来请教了一下。。。完蛋瓦楞。
一直揪心自己是专科。。小静又说要不要自考本,有点动心,可一个下来也要两年。。。而且通过率特别低,百分之十,
昨天还解决了一个问题,就是动画重定向中人的脚会动
这里有一个脚的控制帧,可以让脚始终贴地,一个反向动力学的东西,默认是关闭的,开启就好,好,交工了