Skip to content

Commit

Permalink
Fixed compile error in Unity 2018.2b9 (Obsolete API)
Browse files Browse the repository at this point in the history
  • Loading branch information
aosoft committed Jun 30, 2018
1 parent 0fffbda commit 0c128b4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public override void BeginRecording(RecordingSession session)
#endif
foreach (var binding in aniSettings.bindingType)
{
m_gameObjectRecorder.BindComponent(srcGO, binding, aniSettings.recursive);
#if UNITY_2018_2_OR_NEWER
m_gameObjectRecorder.BindComponentsOfType(srcGO, binding, aniSettings.recursive);
#else
m_gameObjectRecorder.BindComponent(srcGO, binding, aniSettings.recursive);
#endif
}
m_time = session.recorderTime;
}
Expand Down

0 comments on commit 0c128b4

Please sign in to comment.