docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IUsesCameraTextureMethods

    Inheritance
    object
    IUsesCameraTextureMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesCameraTextureMethods

    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

    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)