Class CaptureFromCamera
Capture from a specific Unity camera. This component re-renders the camera manually, so it does add extra draw calls.
Inheritance
System.Object
CaptureFromCamera
Assembly: cs.temp.dll.dll
public class CaptureFromCamera : CaptureBase
Properties
Declaration
public CameraSelector CameraSelector { get; set; }
Property Value
Declaration
public bool UseContributingCameras { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public IEnumerator Capture()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator |
|
GetPreviewTexture()
Declaration
public override Texture GetPreviewTexture()
Returns
Overrides
Declaration
public override void OnDestroy()
Overrides
Declaration
public override bool PrepareCapture()
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public void SetCamera(Camera topCamera, Camera[] contributingCameras)
Parameters
Type |
Name |
Description |
Camera |
topCamera |
|
Camera[] |
contributingCameras |
|
Declaration
public void SetCamera(Camera topCamera, bool useContributingCameras = true)
Parameters
Type |
Name |
Description |
Camera |
topCamera |
|
System.Boolean |
useContributingCameras |
|
Declaration
public override void UnprepareCapture()
Overrides
Declaration
public override void UpdateFrame()
Overrides