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

    Interface IProvidesCameraTexture

    Defines the API for a Camera Texture Provider This functionality provider is responsible for access to a camera texture.

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS
    Syntax
    public interface IProvidesCameraTexture : IFunctionalityProvider

    Properties

    CameraFacingDirection

    The current facing direction of the camera used to supply the texture

    Declaration
    CameraFacingDirection CameraFacingDirection { get; }
    Property Value
    Type Description
    CameraFacingDirection

    Methods

    GetCameraTexture()

    Get the current camera texture

    Declaration
    Texture GetCameraTexture()
    Returns
    Type Description
    Texture

    The current camera texture

    RequestCameraFacingDirection(CameraFacingDirection)

    Request that the provider use the camera with the given facing direction, if possible

    Declaration
    void RequestCameraFacingDirection(CameraFacingDirection facingDirection)
    Parameters
    Type Name Description
    CameraFacingDirection facingDirection

    The requested camera facing direction

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