Skip to content

Instantly share code, notes, and snippets.

View nickyeh97's full-sized avatar

Nick Yeh nickyeh97

  • Taiwan
View GitHub Profile
using UnityEngine;
using System.Collections;
namespace DesignPattern_Bridge
{
// 定義作類別之共用介面
public abstract class Implementor
{
public abstract void OperationImp();
}
// OnPreRender/OnPostRender will not call in SRP
void OnPostRender()
{
//Debug.LogFormat("frameTimer : {0} , frameInterval : {1}", frameTimer, frameInterval);
if (isREC && (frameTimer += Time.deltaTime) > frameInterval)
{
frameTimer -= frameInterval;
frameBuffer.ReadPixels(camRect, 0, 0);
Debug.Log("EncodeToJPG Now");
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;
using Fungus;
/// <summary>
/// Play a video clip in the VideoPlayer.
/// </summary>
[CommandInfo("Ultrablue",