コード例 #1
0
        protected internal override void EndRecording(RecordingSession session)
        {
            // Case REC-98 crash gif animation when start/stop recording in playmode
            // If you start recording while in playmode pause the RecordFrame
            // will never be called and m_ctx and m_stream will de-reference null
            // pointers that will crash unity.
            if (m_ctx)
            {
                m_ctx.Release();
            }

            if (m_stream)
            {
                m_stream.Release();
            }

            base.EndRecording(session);
        }
コード例 #2
0
 public override void EndRecording(RecordingSession session)
 {
     m_ctx.Release();
     m_stream.Release();
     base.EndRecording(session);
 }
コード例 #3
0
ファイル: GIFRecorder.cs プロジェクト: jfox-ku/GJG-Staj
 protected internal override void EndRecording(RecordingSession session)
 {
     m_ctx.Release();
     m_stream.Release();
     base.EndRecording(session);
 }