mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-22 02:00:59 -05:00
rename ForceUniqueName to ForceTransformUniqueName
This commit is contained in:
parent
c27c4b6153
commit
f9f5f37dfa
|
|
@ -129,7 +129,7 @@ namespace UniHumanoid
|
|||
public Avatar CreateAvatar(Transform root)
|
||||
{
|
||||
// force unique name
|
||||
ForceUniqueName.Validate(root);
|
||||
ForceTransformUniqueName.Validate(root);
|
||||
return AvatarBuilder.BuildHumanAvatar(root.gameObject, ToHumanDescription(root));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace UniHumanoid
|
|||
{
|
||||
public static Avatar LoadHumanoidAvatar(Transform root, IEnumerable<(Transform, HumanBodyBones)> boneMap)
|
||||
{
|
||||
UniGLTF.Utils.ForceUniqueName.Process(root);
|
||||
UniGLTF.Utils.ForceTransformUniqueName.Process(root);
|
||||
|
||||
var description = new HumanDescription
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace UniGLTF.Utils
|
||||
{
|
||||
public class ForceUniqueName
|
||||
public class ForceTransformUniqueName
|
||||
{
|
||||
HashSet<string> m_uniqueNameSet = new HashSet<string>();
|
||||
int m_counter = 1;
|
||||
|
|
@ -29,7 +29,7 @@ namespace UniGLTF.Utils
|
|||
|
||||
public static void Process(Transform root)
|
||||
{
|
||||
var uniqueName = new ForceUniqueName();
|
||||
var uniqueName = new ForceTransformUniqueName();
|
||||
var transforms = root.GetComponentsInChildren<Transform>();
|
||||
foreach (var t in transforms)
|
||||
{
|
||||
Loading…
Reference in New Issue
Block a user