Exemplo n.º 1
0
        public void Show(RecorderParameters parameters)
        {
            this.parameters = parameters;

            show = true;
            repaintGameView();
        }
Exemplo n.º 2
0
        /*
         * 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);
            }
        }
Exemplo n.º 3
0
        public void Init(RecorderParameters parameters)
        {
            this.parameters = parameters;

            Reset();

            // Init
            m_MaxFrameCount = Mathf.RoundToInt(parameters.duration * parameters.framePerSecond);
            m_Time          = 0f;
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public void Convert(RecorderParameters parameters)
 {
 }