mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 12:15:05 +08:00
aa698565ab
* 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
28 lines
755 B
C#
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);
|
|
}
|
|
}
|
|
} |