//获取当前模型原始高度
float size_y = GetComponent<Collider> ().bounds.size.y;
//获取模型模型缩放比例
float scal_y = transform.localScale.y;
//当前高度 = 原始高度 * 缩放比例
targetHeiget = size_y * scal_y;
//获取当前模型原始高度
float size_y = GetComponent<Collider> ().bounds.size.y;
//获取模型模型缩放比例
float scal_y = transform.localScale.y;
//当前高度 = 原始高度 * 缩放比例
targetHeiget = size_y * scal_y;
本文标题:模型高度计算
本文链接:https://www.haomeiwen.com/subject/lmfbbttx.html
网友评论