docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesCameraTextureMethods

    Inheritance
    Object
    IUsesCameraTextureMethods
    Namespace: Unity.MARS.Providers
    Syntax
    public static class IUsesCameraTextureMethods : object

    Methods

    GetCameraFacingDirection(IUsesCameraTexture)

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

    Declaration
    public static CameraFacingDirection GetCameraFacingDirection(this IUsesCameraTexture obj)
    Parameters
    Type Name Description
    IUsesCameraTexture obj
    Returns
    Type Description
    CameraFacingDirection

    GetCameraTexture(IUsesCameraTexture)

    Get the current camera texture

    Declaration
    public static Texture GetCameraTexture(this IUsesCameraTexture obj)
    Parameters
    Type Name Description
    IUsesCameraTexture obj
    Returns
    Type Description
    Texture

    The current camera texture

    RequestCameraFacingDirection(IUsesCameraTexture, CameraFacingDirection)

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

    Declaration
    public static void RequestCameraFacingDirection(this IUsesCameraTexture obj, CameraFacingDirection facingDirection)
    Parameters
    Type Name Description
    IUsesCameraTexture obj
    CameraFacingDirection facingDirection

    The requested camera facing direction

    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