public void Show(RecorderParameters parameters) { this.parameters = parameters; show = true; repaintGameView(); }
/* * Init */ public override void init() { if (Parameters == null) { Parameters = new RecorderParameters(); } if (emptyRenderer == null) { emptyRenderer = new EmptyRenderer(this); } if (ProgressRenderer == null) { ProgressRenderer = new ProgressRenderer(this); } if (ParametersRenderer == null) { ParametersRenderer = new ParametersRenderer(this); } if (RecordRenderer == null) { RecordRenderer = new RecordRenderer(this); } if (PreviewRenderer == null) { PreviewRenderer = new PreviewRenderer(this); } if (ExportRenderer == null) { ExportRenderer = new ExportRenderer(this); } }
public void Init(RecorderParameters parameters) { this.parameters = parameters; Reset(); // Init m_MaxFrameCount = Mathf.RoundToInt(parameters.duration * parameters.framePerSecond); m_Time = 0f; }
public void Convert(RecorderParameters parameters) { texture2D = new Texture2D(renderTexture.width, renderTexture.height, TextureFormat.RGB24, false); texture2D.hideFlags = HideFlags.HideAndDontSave; texture2D.wrapMode = TextureWrapMode.Clamp; texture2D.filterMode = FilterMode.Bilinear; texture2D.anisoLevel = 0; RenderTexture.active = renderTexture; texture2D.ReadPixels(new Rect(0, 0, renderTexture.width, renderTexture.height), 0, 0); texture2D.Apply(); RenderTexture.active = null; Texture2D.DestroyImmediate(renderTexture); }
public void Convert(RecorderParameters parameters) { }