docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UniversalResourceDataBase

    Base class for URP texture data.

    Inheritance
    object
    ContextItem
    UniversalResourceDataBase
    UniversalResourceData
    Inherited Members
    ContextItem.Reset()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public abstract class UniversalResourceDataBase : ContextItem

    Methods

    CheckAndGetTextureHandle(ref TextureHandle)

    Fetches the texture handle if the texture is accessible.

    Declaration
    protected TextureHandle CheckAndGetTextureHandle(ref TextureHandle handle)
    Parameters
    Type Name Description
    TextureHandle handle

    Handle to the texture you want to retrieve

    Returns
    Type Description
    TextureHandle

    Returns the handle if the texture is accessible and a null handle otherwise.

    CheckAndGetTextureHandle(ref TextureHandle[])

    Fetches the texture handles if the texture is accessible.

    Declaration
    protected TextureHandle[] CheckAndGetTextureHandle(ref TextureHandle[] handle)
    Parameters
    Type Name Description
    TextureHandle[] handle

    Handles to the texture you want to retrieve

    Returns
    Type Description
    TextureHandle[]

    Returns the handles if the texture is accessible and a null handle otherwise.

    CheckAndSetTextureHandle(ref TextureHandle, TextureHandle)

    Updates the texture handle if the texture is accessible.

    Declaration
    protected void CheckAndSetTextureHandle(ref TextureHandle handle, TextureHandle newHandle)
    Parameters
    Type Name Description
    TextureHandle handle

    Handle to update.

    TextureHandle newHandle

    Handle of the new data.

    CheckAndSetTextureHandle(ref TextureHandle[], TextureHandle[])

    Updates the texture handles if the texture is accessible. The current and new handles needs to be of the same size.

    Declaration
    protected void CheckAndSetTextureHandle(ref TextureHandle[] handle, TextureHandle[] newHandle)
    Parameters
    Type Name Description
    TextureHandle[] handle

    Handles to update.

    TextureHandle[] newHandle

    Handles of the new data.

    CheckAndWarnAboutAccessibility()

    Check if the texture is accessible.

    Declaration
    protected bool CheckAndWarnAboutAccessibility()
    Returns
    Type Description
    bool

    Returns true if the texture is accessible and false otherwise.

    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)