docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesSimulationVideoFeedMethods

    Inheritance
    Object
    IUsesSimulationVideoFeedMethods
    Namespace: Unity.MARS.Simulation
    Syntax
    public static class IUsesSimulationVideoFeedMethods : object

    Methods

    GetVideoFacingDirection(IUsesSimulationVideoFeed)

    Get the direction of the camera used to capture the video

    Declaration
    public static CameraFacingDirection GetVideoFacingDirection(this IUsesSimulationVideoFeed obj)
    Parameters
    Type Name Description
    IUsesSimulationVideoFeed obj
    Returns
    Type Description
    CameraFacingDirection

    The direction of the camera used to capture the video

    GetVideoFeedTexture(IUsesSimulationVideoFeed)

    Get the texture displaying the video feed

    Declaration
    public static Texture GetVideoFeedTexture(this IUsesSimulationVideoFeed obj)
    Parameters
    Type Name Description
    IUsesSimulationVideoFeed obj
    Returns
    Type Description
    Texture

    The texture displaying the video feed

    GetVideoFocalLength(IUsesSimulationVideoFeed)

    Get the focal length of the camera used to capture the video, in pixels

    Declaration
    public static float GetVideoFocalLength(this IUsesSimulationVideoFeed obj)
    Parameters
    Type Name Description
    IUsesSimulationVideoFeed obj
    Returns
    Type Description
    Single

    The focal length of the camera used to capture the video, in pixels

    SubscribeVideoFeedTextureCreated(IUsesSimulationVideoFeed, Action<Texture>)

    Subscribe to the VideoFeedTextureChanged event, which is called right after the video feed texture has been created

    Declaration
    public static void SubscribeVideoFeedTextureCreated(this IUsesSimulationVideoFeed obj, Action<Texture> onVideoFeedTextureCreated)
    Parameters
    Type Name Description
    IUsesSimulationVideoFeed obj
    Action<Texture> onVideoFeedTextureCreated

    The delegate to subscribe

    UnsubscribeVideoFeedTextureCreated(IUsesSimulationVideoFeed, Action<Texture>)

    Unsubscribe from the VideoFeedTextureChanged event, which is called right after the video feed texture has been created

    Declaration
    public static void UnsubscribeVideoFeedTextureCreated(this IUsesSimulationVideoFeed obj, Action<Texture> onVideoFeedTextureCreated)
    Parameters
    Type Name Description
    IUsesSimulationVideoFeed obj
    Action<Texture> onVideoFeedTextureCreated

    The delegate to unsubscribe

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023