Search Issue Tracker
Fixed in 3.0.0-pre.1
Votes
0
Found in [Package]
2.5.2
Issue ID
1310548
Regression
No
[Unity Recorder] InvalidOperationException is thrown if Recorded component is set to nothing for Animation clip recorder
InvalidOperationException is thrown if Recorded component is set to nothing for Animation clip recorder. Refer the attached video
Steps to reproduce:
1) Create a new project
2) Window > Package Manager > Install Unity Recorder
3) Add Animation clip recorder
4)Recorded components > Nothing
5) Start recording
Actual result: InvalidOperationException is thrown in console as recorded component is set to nothing
Expected result: No exceptions should be thrown in console
Occurring in: 2021.2.0a3, 2021.1.0b5, 2021.1.0a1, 2020.2.2f1, 2020.1.13f1, 2019.4.9f1
Environment: Both Windows and Mac
Stack trace:
InvalidOperationException: Cannot save to clip as there is nothing to save. The method TakeSnapshot() has not been called.
UnityEditor.Animations.GameObjectRecorder.SaveToClip (UnityEngine.AnimationClip clip, System.Single fps, UnityEditor.Animations.CurveFilterOptions filterOptions) (at <67cbc0069dbb4a3d9dbf496b5326c7f8>:0)
UnityEditor.Recorder.AnimationRecorder.EndRecording (UnityEditor.Recorder.RecordingSession session) (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/Recorders/AnimationRecorder/AnimationRecorder.cs:33)
UnityEditor.Recorder.RecordingSession.EndRecording () (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/RecordingSession.cs:136)
UnityEditor.Recorder.RecorderComponent:OnDestroy() (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/_RecorderComponent.cs:27)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Add comment