change character height
This commit is contained in:
@@ -99,6 +99,11 @@ public class UmaContainer : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
public void SetHeight(int scale)
|
||||
{
|
||||
transform.Find("Position").localScale *= (scale / 160f);//WIP
|
||||
}
|
||||
|
||||
public Transform[] MergeBone(SkinnedMeshRenderer from, List<Transform> targetBones)
|
||||
{
|
||||
var rootbone = targetBones.FindLast(a => a.name.Equals(from.rootBone.name));
|
||||
|
||||
@@ -294,6 +294,7 @@ public class UmaViewerBuilder : MonoBehaviour
|
||||
|
||||
|
||||
CurrentUMAContainer.MergeModel();
|
||||
CurrentUMAContainer.SetHeight(Convert.ToInt32(CurrentUMAContainer.CharaData["scale"]));
|
||||
LoadAsset(UmaViewerMain.Instance.AbMotions.FirstOrDefault(a => a.Name.EndsWith($"anm_eve_chr{id}_00_idle01_loop")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user