Class VolumeComponentWithQuality
A base class for volume components that use quality settings and HDRP scalable settings to adjust their behavior based on performance tiers.
Implements
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public abstract class VolumeComponentWithQuality : VolumeComponent, IApplyRevertPropertyContextMenuItemProvider
Remarks
This class is designed for volume components that need to change their parameters based on the selected quality level and scalable settings
Fields
quality
Specifies the quality level to be used for performance-relevant parameters. The quality level will adjust the component's behavior based on the selected setting, which helps to optimize performance across different hardware configurations.
Declaration
[Tooltip("Specifies the quality level to be used for performance relevant parameters.")]
[InspectorName("Tier")]
public ScalableSettingLevelParameter quality
Field Value
Type | Description |
---|---|
Scalable |
Remarks
This parameter allows the user to specify the quality tier (e.g., Low, Medium, High) for specific components that are performance-sensitive. By modifying this parameter, you can tailor the visual fidelity of the component to meet performance requirements.
Methods
UsesQualitySettings()
Determines if the component is using parameters from the quality settings.
Declaration
protected bool UsesQualitySettings()
Returns
Type | Description |
---|---|
bool | True if the component uses the quality settings; otherwise, false. |
Remarks
This method checks whether the component uses the current quality settings or whether it is overridden by a custom setting. If the component uses the default quality settings, it will return true.
Examples
// Example of usage:
if (UsesQualitySettings())
{
// Adjust parameters based on quality settings
}