docs.unity.cn
    Show / Hide Table of Contents

    Class CameraExtension

    Inheritance
    Object
    CameraExtension
    Namespace: Unity.WebRTC
    Syntax
    public static class CameraExtension

    Methods

    CaptureStream(Camera, Int32, Int32, RenderTextureDepth)

    Declaration
    public static MediaStream CaptureStream(this Camera cam, int width, int height, RenderTextureDepth depth = RenderTextureDepth.Depth24)
    Parameters
    Type Name Description
    Camera cam
    Int32 width
    Int32 height
    RenderTextureDepth depth
    Returns
    Type Description
    MediaStream

    CaptureStreamTrack(Camera, Int32, Int32, RenderTextureDepth, Boolean)

    Declaration
    public static VideoStreamTrack CaptureStreamTrack(this Camera cam, int width, int height, RenderTextureDepth depth = RenderTextureDepth.Depth24, bool needFlip = true)
    Parameters
    Type Name Description
    Camera cam
    Int32 width
    Int32 height
    RenderTextureDepth depth
    Boolean needFlip
    Returns
    Type Description
    VideoStreamTrack
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 4, 2022
    Terms of use