摘要: 求两个向量的夹角 方法一: Vector3 d1 = transform.forward; Vector3 d2 = new Vector3(0,3,0); float angle = Vector3.Angle(d1, d2); 方法二 Vector3 d1 = transform.forward 阅读全文
posted @ 2023-06-19 20:10 gatran 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Slider滑动条操作 代码 using UnityEngine; using UnityEngine.UI; public class Juse : MonoBehaviour { public Slider slider; void Start() { float num = 4; string 阅读全文
posted @ 2023-06-19 11:45 gatran 阅读(13) 评论(0) 推荐(0) 编辑