@@ -16,7 +16,7 @@ protected override void RecordFrame(RecordingSession ctx)
16
16
17
17
protected override void EndRecording ( RecordingSession session )
18
18
{
19
- var ars = ( FbxRecorderSettings ) session . settings ;
19
+ var settings = ( FbxRecorderSettings ) session . settings ;
20
20
21
21
foreach ( var input in m_Inputs )
22
22
{
@@ -28,14 +28,13 @@ protected override void EndRecording(RecordingSession session)
28
28
29
29
var clip = new AnimationClip ( ) ;
30
30
31
- ars . FileNameGenerator . CreateDirectory ( session ) ;
31
+ settings . FileNameGenerator . CreateDirectory ( session ) ;
32
32
33
- var absolutePath = FileNameGenerator . SanitizePath ( ars . FileNameGenerator . BuildAbsolutePath ( session ) ) ;
33
+ var absolutePath = FileNameGenerator . SanitizePath ( settings . FileNameGenerator . BuildAbsolutePath ( session ) ) ;
34
34
var clipName = absolutePath . Replace ( FileNameGenerator . SanitizePath ( Application . dataPath ) , "Assets" ) ;
35
35
36
- //AssetDatabase.CreateAsset(clip, clipName);
37
36
#if UNITY_2018_3_OR_NEWER
38
- aInput . GameObjectRecorder . SaveToClip ( clip , ars . FrameRate ) ;
37
+ aInput . GameObjectRecorder . SaveToClip ( clip , settings . FrameRate ) ;
39
38
#else
40
39
aInput . gameObjectRecorder . SaveToClip ( clip ) ;
41
40
#endif
@@ -59,7 +58,7 @@ protected override void EndRecording(RecordingSession session)
59
58
AnimationUtility . SetAnimationClips ( animator , new AnimationClip [ ] { clip } ) ;
60
59
var exportSettings = new ExportModelSettingsSerialize ( ) ;
61
60
var toInclude = ExportSettings . Include . ModelAndAnim ;
62
- if ( ! ars . ExportGeometry )
61
+ if ( ! settings . ExportGeometry )
63
62
{
64
63
toInclude = ExportSettings . Include . Anim ;
65
64
}
0 commit comments