Class Universal2DResourceData
Class that holds settings related to texture resources for the 2D renderer.
Inherited Members
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()