docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Event Changed

    Invoked any time a spline is modified.

    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    public static event Action<Spline, int, SplineModification> Changed
    Returns
    Type Description
    Action<Spline, int, SplineModification>
    Remarks

    First parameter is the target Spline that the event is raised for, second parameter is the knot index and the third parameter represents the type of change that occurred. If the event does not target a specific knot, the second parameter will have the value of -1.

    In the editor this callback can be invoked many times per-frame. Prefer to use AfterSplineWasModified when working with splines in the editor.

    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)