docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRCpuImageFormatExtensions

    Extensions to the XRCpuImage.Format enum.

    Inheritance
    object
    XRCpuImageFormatExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public static class XRCpuImageFormatExtensions

    Methods

    AsTextureFormat(Format)

    Attempts to convert an XRCpuImage.Format to a UnityEngine.TextureFormat.

    Declaration
    public static TextureFormat AsTextureFormat(this XRCpuImage.Format @this)
    Parameters
    Type Name Description
    XRCpuImage.Format this

    The XRCpuImage.Format being extended.

    Returns
    Type Description
    TextureFormat

    Returns a TextureFormat that matches this if possible. Returns 0 if there is no matching TextureFormat.

    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)