docs.unity.cn
    Show / Hide Table of Contents

    Class UniversalResourceDataBase

    Base class for URP texture data.

    Inheritance
    Object
    UnityEngine.Rendering.ContextItem
    UniversalResourceDataBase
    Universal2DResourceData
    UniversalResourceData
    Inherited Members
    UnityEngine.Rendering.ContextItem.Reset()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.Universal
    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
    Boolean

    Returns true if the texture is accessible and false otherwise.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023