docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StandardFrameRateExtensions

    A class that contains extension methods for StandardFrameRate.

    Inheritance
    object
    StandardFrameRateExtensions
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    public static class StandardFrameRateExtensions

    Methods

    ToValue(StandardFrameRate)

    Gets the FrameRate that corresponds to a StandardFrameRate value.

    Declaration
    public static FrameRate ToValue(this StandardFrameRate rate)
    Parameters
    Type Name Description
    StandardFrameRate rate

    The standard frame rate.

    Returns
    Type Description
    FrameRate

    The standard frame rate value.

    TryGetStandardRate(FrameRate, out StandardFrameRate)

    Gets the StandardFrameRate that corresponds to a FrameRate value.

    Declaration
    public static bool TryGetStandardRate(this FrameRate rate, out StandardFrameRate frameRate)
    Parameters
    Type Name Description
    FrameRate rate

    A frame rate.

    StandardFrameRate frameRate

    The standard frame rate, or default if there is no corresponding standard frame rate.

    Returns
    Type Description
    bool

    true if there is a StandardFrameRate value that corresponds to rate; otherwise, false.

    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)