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 — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)