requiresCompatibleRenderPipelineGlobalSettings
Controls whether Unity validates that a compatible RenderPipelineGlobalSettings asset is active when this Render Pipeline Asset gets assigned.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
protected virtual bool requiresCompatibleRenderPipelineGlobalSettings { get; }
Remarks
URP and HDRP override this property to return by default so that Unity validates the active RenderPipelineGlobalSettings asset whenever you assign the RenderPipelineAsset at runtime. Custom render pipelines can override this property to change that behavior.
trueWhen this property returns , assigning an asset to GraphicsSettings.defaultRenderPipeline or QualitySettings.renderPipeline at runtime throws an if a compatible RenderPipelineGlobalSettings asset is not currently active.
trueInvalidOperationExceptionAdditional Resources: GraphicsSettings.TrySetCurrentRenderPipelineGlobalSettings.