docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IUsesSimulationVideoFeedMethods

    Inheritance
    object
    IUsesSimulationVideoFeedMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Simulation
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    public static class IUsesSimulationVideoFeedMethods

    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
    float

    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)