Skip to content

Commit 8eee6ea

Browse files
authored
Merge pull request #83 from aosoft/aosoft/fix2018.2
Fixed compile error in Unity 2018.2b9
2 parents 0fffbda + 0c128b4 commit 8eee6ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/FrameRecorder/Inputs/Animation/Editor/AnimationInput.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ public override void BeginRecording(RecordingSession session)
2525
#endif
2626
foreach (var binding in aniSettings.bindingType)
2727
{
28-
m_gameObjectRecorder.BindComponent(srcGO, binding, aniSettings.recursive);
28+
#if UNITY_2018_2_OR_NEWER
29+
m_gameObjectRecorder.BindComponentsOfType(srcGO, binding, aniSettings.recursive);
30+
#else
31+
m_gameObjectRecorder.BindComponent(srcGO, binding, aniSettings.recursive);
32+
#endif
2933
}
3034
m_time = session.recorderTime;
3135
}

0 commit comments

Comments
 (0)