docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IVariableRefreshRate

    Interface of the Samsung Variable Refresh Rate API.

    Namespace: UnityEngine.AdaptivePerformance.Samsung.Android
    Assembly: Unity.AdaptivePerformance.Samsung.Android.dll
    Syntax
    public interface IVariableRefreshRate

    Properties

    CurrentRefreshRate

    The current display refresh rate.

    Declaration
    int CurrentRefreshRate { get; }
    Property Value
    Type Description
    int

    SupportedRefreshRates

    List of supported display refresh rates.

    Declaration
    int[] SupportedRefreshRates { get; }
    Property Value
    Type Description
    int[]

    Methods

    SetRefreshRateByIndex(int)

    Change the current display refresh rate to the value referenced by the given index from the list of supported refresh rates.

    Declaration
    bool SetRefreshRateByIndex(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    bool

    True if the display refresh rate was updated successfully, false otherwise. Returns false if the requested refresh rate is larger than the Application.targetFrameRate. Note: There is a delay before the actual refresh rate and the value of Screen.currentResolution.refreshRate are updated.

    Events

    RefreshRateChanged

    Event that is called if the current display refresh rate or the list of supported refresh rate is changed externally, for example by changing display settings.

    Declaration
    event VariableRefreshRateEventHandler RefreshRateChanged
    Event Type
    Type Description
    VariableRefreshRateEventHandler
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)