Delegate CopyTexture
Delegate to be called to copy texture.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void CopyTexture(Texture source, RenderTexture dest)
Parameters
Type | Name | Description |
---|---|---|
Texture | source | Source |
RenderTexture | dest | Destination |
Remarks
CopyTexture
delegate is called to copy texture when the texture is updated.
Examples
VideoStreamTrack videoStreamTrack = new VideoStreamTrack(texture, CopyTextureHelper.VerticalFlipCopy);