Method GetClosestQuality
GetClosestQuality(MaterialQuality, MaterialQuality)
Returns the closest available quality level in a MaterialQuality bitfield.
Declaration
public static MaterialQuality GetClosestQuality(this MaterialQuality availableLevels, MaterialQuality requestedLevel)
Parameters
Type | Name | Description |
---|---|---|
MaterialQuality | availableLevels | Available MaterialQuality bitfield. |
MaterialQuality | requestedLevel | Input MaterialQuality level. |
Returns
Type | Description |
---|---|
MaterialQuality | The closest available quality level. |