docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Cancel

    Cancel(float, bool)

    Cancel the event at the supplied time

    Declaration
    public void Cancel(float time, bool forceNoDecay)
    Parameters
    Type Name Description
    float time

    The time at which to cancel the event

    bool forceNoDecay

    If true, event will be cut immediately at the time, otherwise its envelope's decay curve will begin at the cancel time

    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)