docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureUtils

    Utilities for manipulating Textures.

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

    Methods

    RenderTextureToTexture2D(RenderTexture, Texture2D)

    Copy a given RenderTexture to a Texture2D. This method assumes that both textures exist and are the same size.

    Declaration
    public static void RenderTextureToTexture2D(RenderTexture renderTexture, Texture2D texture)
    Parameters
    Type Name Description
    RenderTexture renderTexture

    The source RenderTexture.

    Texture2D texture

    The destination Texture2D.

    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)