docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TimeInSecondsToIndex

    TimeInSecondsToIndex(float)

    Converts a time in seconds to an index.

    Declaration
    public int TimeInSecondsToIndex(float timeInSeconds)
    Parameters
    Type Name Description
    float timeInSeconds

    Time in seconds to be converted into an index.

    Returns
    Type Description
    int

    Frame index that corresponds to the time in seconds passed as argument.

    In This Article
    Back to top
    Copyright © 2024 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)