Class UniversalRenderPipelineRuntimeTextures
A resource container for textures used for Universal
Inherited Members
Namespace: UnityEngine .Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[Serializable]
[SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
[CategoryInfo(Name = "R: Runtime Textures", Order = 1000)]
[HideInInspector]
public class UniversalRenderPipelineRuntimeTextures : IRenderPipelineResources, IRenderPipelineGraphicsSettings
Remarks
You cannot edit these resources through the editor's UI; use the API for advanced changes. Changing this through the API is only allowed in the Editor. In the Player, this raises an error.
Examples
Here is an example of how to get the baked blue noise texture used by URP.
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public static class URPUniversalRendererRuntimeTexturesHelper
{
public static Texture blueNoise
{
get
{
var gs = GraphicsSettings.GetRenderPipelineSettings<UniversalRenderPipelineRuntimeTextures>();
if (gs == null) //not in URP
return null;
return gs.blueNoise64LTex;
}
}
}
Properties
bayerMatrixTex
Bayer matrix texture.
Declaration
public Texture2D bayerMatrixTex { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
See Also
blueNoise64LTex
Pre-baked blue noise textures.
Declaration
public Texture2D blueNoise64LTex { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
See Also
debugFontTexture
Debug font texture.
Declaration
public Texture2D debugFontTexture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
See Also
stencilDitherTex
stencil-based lod texture.
Declaration
public Texture2D stencilDitherTex { get; }
Property Value
Type | Description |
---|---|
Texture2D |
See Also
version
Current version of the resource container. Used only for upgrading a project.
Declaration
public int version { get; }
Property Value
Type | Description |
---|---|
int |