docs.unity3d.com
    Show / Hide Table of Contents

    Class StandardFrameRateExtensions

    A class that contains extension methods for StandardFrameRate.

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

    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 langword_csharp_default if there is no corresponding standard frame rate.

    Returns
    Type Description
    Boolean

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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023