/// <summary> /// Capture a single frame. /// </summary> /// <remarks> /// Capture a single frame to the buffer. The buffer size is 50 frames (default) and the oldest frames will be deleted if the method gets called more than 50 times. /// The total number of frames can be customized by setting the <c>MaxFrames</c> property. /// </remarks> public void CaptureFrame() { InitializeManager(); RenderThisFrame = true; #if UNITY_IOS && !UNITY_EDITOR captureFrame(); #elif UNITY_ANDROID && !UNITY_EDITOR AndroidWrapper.CaptureFrame(); #endif }
public void CaptureFrame(MegacoolFrameCaptureConfig config) { config.SetDefaults(); InitializeManager(); RenderThisFrame = true; #if UNITY_IOS && !UNITY_EDITOR captureFrameWithConfig(config.RecordingId, config.OverflowStrategy.ToString(), new Crop(new Rect(0, 0, 0, 0)), config.ForceAdd, config.MaxFrames, config.FrameRate); #elif UNITY_ANDROID && !UNITY_EDITOR AndroidWrapper.CaptureFrame(config); #endif }