Class LookDevVolumeProfileSettings
A graphics settings container for the Unity
Implements
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
[CategoryInfo(Name = "Volume", Order = 0)]
[ElementInfo(Order = 10)]
public class LookDevVolumeProfileSettings : IRenderPipelineGraphicsSettings
Remarks
To change those settings, go to Editor > Project Settings in the Graphics tab (HDRP). Changing this through the API is only allowed in the Editor. In the Player, this raises an error.
This container is removed from all build Players.
Examples
Here is an example of how to get the default volume profile used by the LookDev in HDRP.
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
public static class HDRPLookDevVolumeProfileHelper
{
public static VolumeProfile volumeProfile
{
get
{
var gs = GraphicsSettings.GetRenderPipelineSettings<LookDevVolumeProfileSettings>();
if (gs == null) //not in HDRP or in a Player
return null;
return gs.volumeProfile;
}
}
}
Properties
version
Current version of these settings container. Used only for upgrading a project.
Declaration
public int version { get; }
Property Value
Type | Description |
---|---|
int |
See Also
volumeProfile
The volume profile to be used for LookDev.
Declaration
public VolumeProfile volumeProfile { get; set; }
Property Value
Type | Description |
---|---|
Volume |