docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ChangeStopTime

    ChangeStopTime(float, bool)

    Change the envelope so that it stops at a specific offset from its start time. Use this to extend or cut short an existing envelope, while respecting the attack and decay as much as possible.

    Declaration
    public void ChangeStopTime(float offset, bool forceNoDecay)
    Parameters
    Type Name Description
    float offset

    When to stop the envelope

    bool forceNoDecay

    If true, envelope will not decay, but cut off instantly

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