07 2023 档案
摘要:Transform操作——平移旋转缩放 1.移动 transform.Translate(Vector3.left * (mouse_x * 15f) * Time.deltaTime); cube.transform.position = cube.transform.position + new
阅读全文
摘要:控制物体透明度 1.首先将物体上的材质球的Rendering Mode改成Fade,再用如下代码; using UnityEngine; public class Guse : MonoBehaviour { public GameObject cube; void Start() { cube.G
阅读全文