modular-avatar/UnitTests~/Animation/MergeOrderTest.cs
bd_ aa698565ab
feat: add merge blend tree component (#572)
* chore: refactor state machine clone logic out as a separate class

* feat: add layer priority and relative path root options to Merge Animator

* feat: add Merge Blend Tree component

* chore: adjust NDMF dependency

* docs: update merge-animator docs

* docs: merge blend tree docs
2023-12-22 17:17:40 +09:00

28 lines
755 B
C#

using System.Linq;
using nadena.dev.ndmf;
using NUnit.Framework;
using UnityEditor.Animations;
namespace modular_avatar_tests
{
public class MergeOrderTest : TestBase
{
[Test]
public void TestMergeOrder()
{
var root = CreatePrefab("MergeOrderTest.prefab");
AvatarProcessor.ProcessAvatar(root);
var fxController = FindFxController(root);
var layerNames = (FindFxController(root).animatorController as AnimatorController)
.layers.Select(l => l.name).ToArray();
Assert.AreEqual(new []
{
"1", "2", "3", "4", "5"
}, layerNames);
}
}
}