C# Class CapturePNG, Adagio

Inheritance: MonoBehaviour
显示文件 Open project: technicalvgda/Adagio

Public Properties

Property Type Description
frameRate int
framesCount int
outputFolder string

Public Methods

Method Description
Awake ( ) : void
CalculateToTexture ( Texture2D texWhite, Texture2D texBlack, Texture2D texOutput ) : void
InitializeCamera ( ) : void
InitializeFields ( ) : void
LateUpdate ( ) : void
RenderToTexture ( Camera camera, Texture2D tex ) : void
Update ( ) : void
WritePNG ( Texture2D tex, string folder ) : void

Private Methods

Method Description
CaptureFrame ( ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

CalculateToTexture() public method

public CalculateToTexture ( Texture2D texWhite, Texture2D texBlack, Texture2D texOutput ) : void
texWhite UnityEngine.Texture2D
texBlack UnityEngine.Texture2D
texOutput UnityEngine.Texture2D
return void

InitializeCamera() public method

public InitializeCamera ( ) : void
return void

InitializeFields() public method

public InitializeFields ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

RenderToTexture() public method

public RenderToTexture ( Camera camera, Texture2D tex ) : void
camera Camera
tex UnityEngine.Texture2D
return void

Update() public method

public Update ( ) : void
return void

WritePNG() public method

public WritePNG ( Texture2D tex, string folder ) : void
tex UnityEngine.Texture2D
folder string
return void

Property Details

frameRate public_oe property

public int frameRate
return int

framesCount public_oe property

public int framesCount
return int

outputFolder public_oe property

public string outputFolder
return string