docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureUtils

    Inheritance
    Object
    TextureUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Muse.Common
    Syntax
    public static class TextureUtils

    Methods

    Create(Object)

    Creates a texture that will remain in memory even after a scene is unloaded.

    Declaration
    public static Texture2D Create(object context = null)
    Parameters
    Type Name Description
    Object context
    Returns
    Type Description
    Texture2D

    SafeDestroy(RenderTexture)

    Declaration
    public static void SafeDestroy(this RenderTexture texture)
    Parameters
    Type Name Description
    RenderTexture texture

    ToTexture2D(RenderTexture)

    Declaration
    public static Texture2D ToTexture2D(this RenderTexture rTex)
    Parameters
    Type Name Description
    RenderTexture rTex
    Returns
    Type Description
    Texture2D
    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