docs.unity3d.com
    显示 / 隐藏目录

    Class IUsesSimulationVideoFeedMethods

    Inheritance
    Object
    IUsesSimulationVideoFeedMethods
    Namespace: Unity.MARS.Simulation
    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
    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

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)