docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Universal2DResourceData

    Class that holds settings related to texture resources for the 2D renderer.

    Inheritance
    object
    ContextItem
    UniversalResourceDataBase
    Universal2DResourceData
    Inherited Members
    UniversalResourceDataBase.CheckAndSetTextureHandle(ref TextureHandle, TextureHandle)
    UniversalResourceDataBase.CheckAndGetTextureHandle(ref TextureHandle)
    UniversalResourceDataBase.CheckAndSetTextureHandle(ref TextureHandle[], TextureHandle[])
    UniversalResourceDataBase.CheckAndGetTextureHandle(ref TextureHandle[])
    UniversalResourceDataBase.CheckAndWarnAboutAccessibility()
    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 class Universal2DResourceData : UniversalResourceDataBase

    Properties

    cameraSortingLayerTexture

    Camera Sorting Layer Texture. Written to by the CopyCameraSortingLayerPass pass.

    Declaration
    public TextureHandle cameraSortingLayerTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    lightTextures

    Light textures per sorting layer. Written to by the Light2D pass.

    Declaration
    public TextureHandle[][] lightTextures { get; set; }
    Property Value
    Type Description
    TextureHandle[][]

    normalsDepth

    Normal depth texture. Written to by the Normal pass.

    Declaration
    public TextureHandle normalsDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    normalsTexture

    Normal textures per sorting layer. Written to by the Normal pass.

    Declaration
    public TextureHandle[] normalsTexture { get; set; }
    Property Value
    Type Description
    TextureHandle[]

    shadowDepth

    Shadow depth texture. Written to by the Shadow pass.

    Declaration
    public TextureHandle shadowDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    shadowTextures

    Shadow textures per sorting layer. Written to by the Light2D pass.

    Declaration
    public TextureHandle[][] shadowTextures { get; set; }
    Property Value
    Type Description
    TextureHandle[][]

    Methods

    Reset()

    Declaration
    public override void Reset()
    Overrides
    ContextItem.Reset()
    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)