diff --git a/Runtime/Scripts/GLTFSceneImporter.cs b/Runtime/Scripts/GLTFSceneImporter.cs index 26b85dd1b..a0b536f89 100644 --- a/Runtime/Scripts/GLTFSceneImporter.cs +++ b/Runtime/Scripts/GLTFSceneImporter.cs @@ -1039,7 +1039,9 @@ protected virtual async Task ConstructScene(GLTFScene scene, bool showSceneObj, var baseLayer = controller.layers[0]; for (int i = 0; i < constructedClips.Count; i++) { - var state = baseLayer.stateMachine.AddState(constructedClips[i].name); + var name = constructedClips[i].name; + if (string.IsNullOrWhiteSpace(name)) name = "clip " + i; + var state = baseLayer.stateMachine.AddState(name); state.motion = constructedClips[i]; } animator.runtimeAnimatorController = controller;