Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RefreshRate

Represents the display refresh rate. This is how many frames the display can show per second.
Read time 1 minuteLast updated 4 days ago

Definition

public struct RefreshRate : IEquatable<RefreshRate>, IComparable<RefreshRate>

Remarks

Display refresh rate is always a rational number which is expressed as a fraction that contains a numerator and a denominator. For example, a 59.94 Hz display might have a numerator of 60000 and a denominator of 1001.

Fields

Value

Description

denominatorDenominator of the refresh rate fraction.
numeratorNumerator of the refresh rate fraction.

Properties

Property

Description

valueThe numerical value of the refresh rate in hertz.

Methods

Method

Description

EqualsReturns true if the refresh rates are equal.
GetHashCodeReturns the hash code for this refresh rate.

Operators

Operator

Description

operator ==Returns true if two refresh rates are equal.
operator !=Returns true if two refresh rates are unequal.