Ejemplo n.º 1
0
        void OnFileSaved(int id, string filepath)
        {
            // Our file has successfully been compressed & written to disk !
            m_LastFile = filepath;

            m_IsSaving = false;

            // Let's start recording again (note that we could do that as soon as pre-processing
            // is done and actually save multiple gifs at once, see OnProcessingDone().
            m_Recorder.Record();
        }
Ejemplo n.º 2
0
        void Start()
        {
            // Get our Recorder instance (there can be only one per camera).
            m_Recorder = GetComponent <Recorder>();

            // If you want to change Recorder settings at runtime, use :
            //m_Recorder.Setup(autoAspect, width, height, fps, bufferSize, repeat, quality);

            // The Recorder starts paused for performance reasons, call Record() to start
            // saving frames to memory. You can pause it at any time by calling Pause().
            m_Recorder.Record();

            // Optional callbacks (see each function for more info).
            m_Recorder.OnPreProcessingDone = OnProcessingDone;
            m_Recorder.OnFileSaveProgress  = OnFileSaveProgress;
            m_Recorder.OnFileSaved         = OnFileSaved;
        }
Ejemplo n.º 3
0
	void Start()
	{
		// Get our Recorder instance (there can be only one per camera).
		m_Recorder = GetComponent<Recorder>();

		// If you want to change Recorder settings at runtime, use :
		//m_Recorder.Setup(autoAspect, width, height, fps, bufferSize, repeat, quality);

		// The Recorder starts paused for performance reasons, call Record() to start
		// saving frames to memory. You can pause it at any time by calling Pause().
		m_Recorder.Record();

		// Optional callbacks (see each function for more info).
		m_Recorder.OnPreProcessingDone = OnProcessingDone;
		m_Recorder.OnFileSaveProgress = OnFileSaveProgress;
		m_Recorder.OnFileSaved = OnFileSaved;
	}