This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
namespace DesignPattern_Bridge | |
{ | |
// 定義作類別之共用介面 | |
public abstract class Implementor | |
{ | |
public abstract void OperationImp(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
OlderNewer