Struct FrameSettings
Per renderer and per frame settings.
Syntax
[Serializable]
public struct FrameSettings
Fields
lodBias
if lodBiasMode == LODBiasMode.Fixed
, then this value will overwrite QualitySettings.lodBias
if lodBiasMode == LODBiasMode.ScaleQualitySettings
, then this value will scale QualitySettings.lodBias
Declaration
Field Value
lodBiasMode
Define how the QualitySettings.lodBias
value is set.
Declaration
public LODBiasMode lodBiasMode
Field Value
lodBiasQualityLevel
The quality level to use when fetching the quality setting value.
Declaration
public int lodBiasQualityLevel
Field Value
materialQuality
The material quality level to use for this rendering.
if materialQuality == 0
, then the material quality from the current quality settings
(in HDRP Asset) will be used.
Declaration
public MaterialQuality materialQuality
Field Value
Type |
Description |
MaterialQuality |
|
maximumLODLevel
if maximumLODLevelMode == MaximumLODLevelMode.FromQualitySettings
, then this value will overwrite QualitySettings.maximumLODLevel
if maximumLODLevelMode == MaximumLODLevelMode.OffsetQualitySettings
, then this value will offset QualitySettings.maximumLODLevel
Declaration
public int maximumLODLevel
Field Value
maximumLODLevelMode
Define how the QualitySettings.maximumLODLevel
value is set.
Declaration
public MaximumLODLevelMode maximumLODLevelMode
Field Value
maximumLODLevelQualityLevel
The quality level to use when fetching the quality setting value.
Declaration
public int maximumLODLevelQualityLevel
Field Value
Properties
litShaderMode
Helper to see binary saved data on LitShaderMode as a LitShaderMode enum.
Declaration
public LitShaderMode litShaderMode { get; set; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetResolvedLODBias(HDRenderPipelineAsset)
Compute the LOD bias value to use
Declaration
public float GetResolvedLODBias(HDRenderPipelineAsset hdrp)
Parameters
Returns
Type |
Description |
Single |
The LOD Bias to use
|
GetResolvedMaximumLODLevel(HDRenderPipelineAsset)
Compute the Maximum LOD level to use
Declaration
public int GetResolvedMaximumLODLevel(HDRenderPipelineAsset hdrp)
Parameters
Returns
Type |
Description |
Int32 |
The Maximum LOD level to use.
|
IsEnabled(FrameSettingsField)
Get stored data for this field.
Declaration
public bool IsEnabled(FrameSettingsField field)
Parameters
Returns
SetEnabled(FrameSettingsField, Boolean)
Set stored data for this field.
Declaration
public void SetEnabled(FrameSettingsField field, bool value)
Parameters
Operators
Equality(FrameSettings, FrameSettings)
Declaration
public static bool operator ==(FrameSettings a, FrameSettings b)
Parameters
Returns
Inequality(FrameSettings, FrameSettings)
Declaration
public static bool operator !=(FrameSettings a, FrameSettings b)
Parameters
Returns