docs.unity3d.com
    目次を表示する/隠す

    Class UniversalRenderPipelineAsset

    Inheritance
    Object
    Object
    ScriptableObject
    RenderPipelineAsset
    UniversalRenderPipelineAsset
    Inherited Members
    RenderPipelineAsset.terrainBrushPassIndex
    RenderPipelineAsset.autodeskInteractiveShader
    RenderPipelineAsset.autodeskInteractiveTransparentShader
    RenderPipelineAsset.autodeskInteractiveMaskedShader
    RenderPipelineAsset.terrainDetailLitShader
    RenderPipelineAsset.terrainDetailGrassShader
    RenderPipelineAsset.terrainDetailGrassBillboardShader
    RenderPipelineAsset.defaultSpeedTree7Shader
    RenderPipelineAsset.defaultSpeedTree8Shader
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    [ExcludeFromPreset]
    public class UniversalRenderPipelineAsset : RenderPipelineAsset, ISerializationCallbackReceiver

    Fields

    AdditionalLightsDefaultShadowResolutionTierHigh

    Declaration
    public static readonly int AdditionalLightsDefaultShadowResolutionTierHigh
    Field Value
    Type Description
    Int32

    AdditionalLightsDefaultShadowResolutionTierLow

    Declaration
    public static readonly int AdditionalLightsDefaultShadowResolutionTierLow
    Field Value
    Type Description
    Int32

    AdditionalLightsDefaultShadowResolutionTierMedium

    Declaration
    public static readonly int AdditionalLightsDefaultShadowResolutionTierMedium
    Field Value
    Type Description
    Int32

    k_MaxLutSize

    Declaration
    public const int k_MaxLutSize = 65
    Field Value
    Type Description
    Int32

    k_MinLutSize

    Declaration
    public const int k_MinLutSize = 16
    Field Value
    Type Description
    Int32

    Properties

    additionalLightsRenderingMode

    Specifies the LightRenderingMode for the additional lights used by this UniversalRenderPipelineAsset.

    Declaration
    public LightRenderingMode additionalLightsRenderingMode { get; }
    Property Value
    Type Description
    LightRenderingMode

    additionalLightsShadowmapResolution

    Additional light shadows are rendered into a single shadow map atlas texture. This setting controls the resolution of the shadow map atlas texture.

    Declaration
    public int additionalLightsShadowmapResolution { get; }
    Property Value
    Type Description
    Int32

    additionalLightsShadowResolutionTierHigh

    Returns the additional light shadow resolution defined for tier "High" in the UniversalRenderPipeline asset.

    Declaration
    public int additionalLightsShadowResolutionTierHigh { get; }
    Property Value
    Type Description
    Int32

    additionalLightsShadowResolutionTierLow

    Returns the additional light shadow resolution defined for tier "Low" in the UniversalRenderPipeline asset.

    Declaration
    public int additionalLightsShadowResolutionTierLow { get; }
    Property Value
    Type Description
    Int32

    additionalLightsShadowResolutionTierMedium

    Returns the additional light shadow resolution defined for tier "Medium" in the UniversalRenderPipeline asset.

    Declaration
    public int additionalLightsShadowResolutionTierMedium { get; }
    Property Value
    Type Description
    Int32

    cascade2Split

    Returns the split value.

    Declaration
    public float cascade2Split { get; }
    Property Value
    Type Description
    Single

    Returns a Float with the split value.

    cascade3Split

    Returns the split values.

    Declaration
    public Vector2 cascade3Split { get; }
    Property Value
    Type Description
    Vector2

    Returns a Vector2 with the split values.

    cascade4Split

    Returns the split values.

    Declaration
    public Vector3 cascade4Split { get; }
    Property Value
    Type Description
    Vector3

    Returns a Vector3 with the split values.

    cascadeBorder

    Last cascade fade distance in percentage.

    Declaration
    public float cascadeBorder { get; set; }
    Property Value
    Type Description
    Single

    colorGradingLutSize

    Specifies the color grading LUT (lookup table) size in the URP Asset.

    Declaration
    public int colorGradingLutSize { get; set; }
    Property Value
    Type Description
    Int32

    colorGradingMode

    Returns the selected ColorGradingMode in the URP Asset. ColorGradingMode

    Declaration
    public ColorGradingMode colorGradingMode { get; set; }
    Property Value
    Type Description
    ColorGradingMode

    conservativeEnclosingSphere

    Set to true to enable a conservative method for calculating the size and position of the minimal enclosing sphere around the frustum cascade corner points for shadow culling.

    Declaration
    public bool conservativeEnclosingSphere { get; set; }
    Property Value
    Type Description
    Boolean

    decalMaterial

    Declaration
    public Material decalMaterial { get; }
    Property Value
    Type Description
    Material

    default2DMaskMaterial

    Returns the default sprite mask material for the 2D renderer.

    Declaration
    public override Material default2DMaskMaterial { get; }
    Property Value
    Type Description
    Material

    Returns the material containing the default shader pass for sprite mask in the 2D renderer.

    Overrides
    RenderPipelineAsset.default2DMaskMaterial

    default2DMaterial

    Returns the default material for the 2D renderer.

    Declaration
    public override Material default2DMaterial { get; }
    Property Value
    Type Description
    Material

    Returns the material containing the default lit and unlit shader passes for sprites in the 2D renderer.

    Overrides
    RenderPipelineAsset.default2DMaterial

    defaultLineMaterial

    Declaration
    public override Material defaultLineMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultLineMaterial

    defaultMaterial

    Declaration
    public override Material defaultMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultMaterial

    defaultParticleMaterial

    Declaration
    public override Material defaultParticleMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultParticleMaterial

    defaultShader

    Returns the default shader for the specified renderer. When creating new objects in the editor, the materials of those objects will use the selected default shader.

    Declaration
    public override Shader defaultShader { get; }
    Property Value
    Type Description
    Shader

    Returns the default shader for the specified renderer.

    Overrides
    RenderPipelineAsset.defaultShader

    defaultTerrainMaterial

    Declaration
    public override Material defaultTerrainMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultTerrainMaterial

    defaultUIETC1SupportedMaterial

    Declaration
    public override Material defaultUIETC1SupportedMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultUIETC1SupportedMaterial

    defaultUIMaterial

    Declaration
    public override Material defaultUIMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultUIMaterial

    defaultUIOverdrawMaterial

    Declaration
    public override Material defaultUIOverdrawMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderPipelineAsset.defaultUIOverdrawMaterial

    enableLODCrossFade

    Declaration
    public bool enableLODCrossFade { get; }
    Property Value
    Type Description
    Boolean

    fsrOverrideSharpness

    If this property is set to true, the value from the fsrSharpness property will control the intensity of the sharpening filter associated with FidelityFX Super Resolution.

    Declaration
    public bool fsrOverrideSharpness { get; set; }
    Property Value
    Type Description
    Boolean

    fsrSharpness

    Controls the intensity of the sharpening filter associated with FidelityFX Super Resolution. A value of 1.0 produces maximum sharpness while a value of 0.0 disables the sharpening filter entirely.

    Note: This value only has an effect when the fsrOverrideSharpness property is set to true.

    Declaration
    public float fsrSharpness { get; set; }
    Property Value
    Type Description
    Single

    hdrColorBufferPrecision

    Graphics format requested for HDR color buffers.

    Declaration
    public HDRColorBufferPrecision hdrColorBufferPrecision { get; set; }
    Property Value
    Type Description
    HDRColorBufferPrecision

    lightLayerMaskNames

    Names used for display of light layers.

    Declaration
    public string[] lightLayerMaskNames { get; }
    Property Value
    Type Description
    String[]

    lodCrossFadeDitheringType

    Declaration
    public LODCrossFadeDitheringType lodCrossFadeDitheringType { get; }
    Property Value
    Type Description
    LODCrossFadeDitheringType

    mainLightRenderingMode

    Declaration
    public LightRenderingMode mainLightRenderingMode { get; }
    Property Value
    Type Description
    LightRenderingMode

    mainLightShadowmapResolution

    Returns the main light shadowmap resolution used for this UniversalRenderPipelineAsset.

    Declaration
    public int mainLightShadowmapResolution { get; }
    Property Value
    Type Description
    Int32

    maxAdditionalLightsCount

    Specifies the maximum amount of per-object additional lights which can be used by this UniversalRenderPipelineAsset.

    Declaration
    public int maxAdditionalLightsCount { get; set; }
    Property Value
    Type Description
    Int32

    msaaSampleCount

    Specifies the msaa sample count used by this UniversalRenderPipelineAsset

    Declaration
    public int msaaSampleCount { get; set; }
    Property Value
    Type Description
    Int32

    numIterationsEnclosingSphere

    Set the number of iterations to reduce the cascade culling enlcosing sphere to be closer to the absolute minimun enclosing sphere, but will also require more CPU computation for increasing values. This parameter is used only when conservativeEnclosingSphere is set to true. Default value is 64.

    Declaration
    public int numIterationsEnclosingSphere { get; set; }
    Property Value
    Type Description
    Int32

    opaqueDownsampling

    Returns the downsampling method used when copying the camera color texture after rendering opaques.

    Declaration
    public Downsampling opaqueDownsampling { get; }
    Property Value
    Type Description
    Downsampling

    prefixedRenderingLayerMaskNames

    Names used for display of rendering layer masks with prefix.

    Declaration
    public override string[] prefixedRenderingLayerMaskNames { get; }
    Property Value
    Type Description
    String[]
    Overrides
    RenderPipelineAsset.prefixedRenderingLayerMaskNames

    reflectionProbeBlending

    Specifies if this UniversalRenderPipelineAsset should use Probe blending for the reflection probes in the scene.

    Declaration
    public bool reflectionProbeBlending { get; }
    Property Value
    Type Description
    Boolean

    reflectionProbeBoxProjection

    Specifies if this UniversalRenderPipelineAsset should allow box projection for the reflection probes in the scene.

    Declaration
    public bool reflectionProbeBoxProjection { get; }
    Property Value
    Type Description
    Boolean

    renderingLayerMaskNames

    Names used for display of rendering layer masks.

    Declaration
    public override string[] renderingLayerMaskNames { get; }
    Property Value
    Type Description
    String[]
    Overrides
    RenderPipelineAsset.renderingLayerMaskNames

    renderScale

    Specifies the render scale which scales the render target resolution used by this UniversalRenderPipelineAsset.

    Declaration
    public float renderScale { get; set; }
    Property Value
    Type Description
    Single

    scriptableRenderer

    Returns the default renderer being used by this pipeline.

    Declaration
    public ScriptableRenderer scriptableRenderer { get; }
    Property Value
    Type Description
    ScriptableRenderer

    shadowCascadeCount

    Returns the number of shadow cascades.

    Declaration
    public int shadowCascadeCount { get; set; }
    Property Value
    Type Description
    Int32

    shadowDepthBias

    The Shadow Depth Bias, controls the offset of the lit pixels.

    Declaration
    public float shadowDepthBias { get; set; }
    Property Value
    Type Description
    Single

    shadowDistance

    Controls the maximum distance at which shadows are visible.

    Declaration
    public float shadowDistance { get; set; }
    Property Value
    Type Description
    Single

    shadowNormalBias

    Controls the distance at which the shadow casting surfaces are shrunk along the surface normal.

    Declaration
    public float shadowNormalBias { get; set; }
    Property Value
    Type Description
    Single

    storeActionsOptimization

    Returns the active store action optimization value.

    Declaration
    public StoreActionsOptimization storeActionsOptimization { get; set; }
    Property Value
    Type Description
    StoreActionsOptimization

    Returns the active store action optimization value.

    supportsAdditionalLightShadows

    Specifies if objects lit by additional lights cast shadows.

    Declaration
    public bool supportsAdditionalLightShadows { get; }
    Property Value
    Type Description
    Boolean

    supportsCameraDepthTexture

    When true, the pipeline creates a depth texture that can be read in shaders. The depth texture can be accessed as _CameraDepthTexture. This setting can be overridden per camera.

    Declaration
    public bool supportsCameraDepthTexture { get; set; }
    Property Value
    Type Description
    Boolean

    supportsCameraOpaqueTexture

    When true, the pipeline creates a texture that contains a copy of the color buffer after rendering opaque objects. This texture can be accessed in shaders as _CameraOpaqueTexture. This setting can be overridden per camera.

    Declaration
    public bool supportsCameraOpaqueTexture { get; set; }
    Property Value
    Type Description
    Boolean

    supportsDynamicBatching

    Specifies if this UniversalRenderPipelineAsset should use dynamic batching.

    Declaration
    public bool supportsDynamicBatching { get; set; }
    Property Value
    Type Description
    Boolean

    supportsHDR

    When enabled, the camera renders to HDR buffers. This setting can be overridden per camera.

    Declaration
    public bool supportsHDR { get; set; }
    Property Value
    Type Description
    Boolean

    supportsLightLayers

    Returns true if the Render Pipeline Asset supports light layers, false otherwise.

    Declaration
    public bool supportsLightLayers { get; }
    Property Value
    Type Description
    Boolean

    supportsMainLightShadows

    Specifies if objects lit by main light cast shadows.

    Declaration
    public bool supportsMainLightShadows { get; }
    Property Value
    Type Description
    Boolean

    supportsMixedLighting

    Returns true if the Render Pipeline Asset supports mixed lighting, false otherwise.

    Declaration
    public bool supportsMixedLighting { get; }
    Property Value
    Type Description
    Boolean

    supportsSoftShadows

    Supports Soft Shadows controls the Soft Shadows.

    Declaration
    public bool supportsSoftShadows { get; }
    Property Value
    Type Description
    Boolean

    supportsTerrainHoles

    This settings controls if the asset UniversalRenderPipelineAsset supports terrain holes.

    Declaration
    public bool supportsTerrainHoles { get; }
    Property Value
    Type Description
    Boolean

    textures

    Returns asset texture resources

    Declaration
    public UniversalRenderPipelineAsset.TextureResources textures { get; }
    Property Value
    Type Description
    UniversalRenderPipelineAsset.TextureResources

    upscalingFilter

    Returns the upscaling filter desired by the user Note: Filter selections differ from actual filters in that they may include "meta-filters" such as "Automatic" which resolve to an actual filter at a later time.

    Declaration
    public UpscalingFilterSelection upscalingFilter { get; set; }
    Property Value
    Type Description
    UpscalingFilterSelection

    useAdaptivePerformance

    Set to true to allow Adaptive performance to modify graphics quality settings during runtime. Only applicable when Adaptive performance package is available.

    Declaration
    public bool useAdaptivePerformance { get; set; }
    Property Value
    Type Description
    Boolean

    useFastSRGBLinearConversion

    Returns true if fast approximation functions are used when converting between the sRGB and Linear color spaces, false otherwise.

    Declaration
    public bool useFastSRGBLinearConversion { get; }
    Property Value
    Type Description
    Boolean

    useSRPBatcher

    Specifies if SRPBacher is used by this UniversalRenderPipelineAsset.

    Declaration
    public bool useSRPBatcher { get; set; }
    Property Value
    Type Description
    Boolean

    volumeFrameworkUpdateMode

    Returns the selected update mode for volumes.

    Declaration
    public VolumeFrameworkUpdateMode volumeFrameworkUpdateMode { get; }
    Property Value
    Type Description
    VolumeFrameworkUpdateMode

    Methods

    CreatePipeline()

    Creates a UniversalRenderPipeline from the UniversalRenderPipelineAsset.

    Declaration
    protected override RenderPipeline CreatePipeline()
    Returns
    Type Description
    RenderPipeline

    Returns a UniversalRenderPipeline created from this UniversalRenderPipelineAsset.

    Overrides
    RenderPipelineAsset.CreatePipeline()

    GetRenderer(Int32)

    Returns a renderer from the current pipeline asset

    Declaration
    public ScriptableRenderer GetRenderer(int index)
    Parameters
    Type Name Description
    Int32 index

    Index to the renderer. If invalid index is passed, the default renderer is returned instead.

    Returns
    Type Description
    ScriptableRenderer

    LoadBuiltinRendererData(RendererType)

    Use this class to initialize the rendererData element that is required by the renderer.

    Declaration
    public ScriptableRendererData LoadBuiltinRendererData(RendererType type = RendererType.UniversalRenderer)
    Parameters
    Type Name Description
    RendererType type

    The RendererType of the new renderer that is initialized within this asset.

    Returns
    Type Description
    ScriptableRendererData

    OnAfterDeserialize()

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    OnDisable()

    Declaration
    protected override void OnDisable()
    Overrides
    RenderPipelineAsset.OnDisable()

    OnValidate()

    Declaration
    protected override void OnValidate()
    Overrides
    RenderPipelineAsset.OnValidate()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)