8
8
9
9
namespace FbxExporters . UnitTests
10
10
{
11
- public class ExportTimelineClip : ExporterTestBase
11
+ public class ExportTimelineClipTest : ExporterTestBase
12
12
{
13
13
[ SetUp ]
14
14
public void Init ( )
@@ -46,9 +46,6 @@ public void ExportClip()
46
46
//Create clip (timeline) with Animation Clip
47
47
//UnityEngine.Timeline.TimelineClip timeLineClip = new UnityEngine.Timeline.TimelineClip();
48
48
49
-
50
-
51
-
52
49
/*var selectedObjects = Selection.objects;
53
50
foreach (var obj in selectedObjects)
54
51
{
@@ -73,32 +70,23 @@ public void ExportClip()
73
70
}
74
71
}*/
75
72
76
-
77
-
78
- Assert . IsTrue ( FbxPrefabAutoUpdater . OnValidateMenuItem ( ) ) ;
73
+ // Assert.IsTrue(FbxPrefabAutoUpdater.OnValidateMenuItem());
79
74
}
80
75
81
76
[ Test ]
82
77
public void ExportAllTimelineClip ( )
83
78
{
84
- GameObject myCube = GameObject . Find ( "Cube " ) ;
79
+ GameObject myCube = GameObject . Find ( "CubeSpecial " ) ;
85
80
Selection . objects = new UnityEngine . GameObject [ ] { myCube } ;
86
- string folderPath = Application . dataPath + "/Assets/ UnitTest" ;
81
+ string folderPath = Application . dataPath + "/UnitTest/ " ;
87
82
Debug . Log ( folderPath ) ;
88
83
foreach ( GameObject obj in Selection . objects )
89
84
{
90
- ModelExporter . ExportAllTimelineClips ( obj , Application . dataPath + "/Assets/UnitTest/" ) ;
91
- FileAssert . Exists ( folderPath + obj . name + "@Recorded.fbx" ) ;
92
-
85
+ ModelExporter . ExportAllTimelineClips ( obj , folderPath ) ;
86
+ FileAssert . Exists ( folderPath + obj . name + "@Animation Track.fbx" ) ;
93
87
}
94
-
95
-
96
-
97
88
}
98
89
99
-
100
-
101
-
102
90
[ TearDown ]
103
91
public void StopTest ( )
104
92
{
0 commit comments