docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method RenderTextureToTexture2D

    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 © 2024 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)