Unity-Technologies / GenericFrameRecorder

This GitHub package is DEPRECATED. Please get the new Unity Recorder from the Asset Store (https://assetstore.unity.com/packages/essentials/unity-recorder-94079) Use the editor builtin Bug Reporter to report issues. You can track and vote for issues on the Issue Tracker (https://issuetracker.unity3d.com)
MIT License
535 stars 66 forks source link

Animation recorder: Error in console when recording MonoBehavior scripts or third party plugin components #42

Closed JoelFortin closed 6 years ago

JoelFortin commented 6 years ago

Having a custom script assign to my object and set the recorder to record it, we get errors in the console. Also true for cinemachine components:

Error:

ArgumentException: Cannot marshal CinemachineMixingCamera to a native Unity::Type!
UnityEditor.Experimental.Recorder.Input.AnimationInput.BeginRecording (UnityEngine.Recorder.RecordingSession session) (at Assets/Unity Technologies/Recorder/Framework/Inputs/Animation/Editor/AnimationInput.cs:17)
UnityEngine.Recorder.Recorder.SignalInputsOfStage (ERecordingSessionStage stage, UnityEngine.Recorder.RecordingSession session) (at Assets/Unity Technologies/Recorder/Framework/Core/Engine/Recorder.cs:155)
UnityEngine.Recorder.RecordingSession.BeginRecording () (at Assets/Unity Technologies/Recorder/Framework/Core/Engine/RecordingSession.cs:72)
UnityEditor.Recorder.RecorderWindow.StartRecording (Boolean autoExitPlayMode) (at Assets/Unity Technologies/Recorder/Framework/Core/Editor/RecorderWindow.cs:254)
UnityEditor.Recorder.RecorderWindow.DelayedStartRecording () (at Assets/Unity Technologies/Recorder/Framework/Core/Editor/RecorderWindow.cs:237)
UnityEditor.Recorder.RecorderWindow.OnGUI () (at Assets/Unity Technologies/Recorder/Framework/Core/Editor/RecorderWindow.cs:92)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
romainf-unity commented 6 years ago

Issue Tracker link: https://issuetracker.unity3d.com/issues/animation-recorder-error-in-console-when-recording-custom-or-third-party-component

jasonm-unity commented 6 years ago

Unity issue. closing it here.