docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    On Change

    The On Change node inspects the Input data every frame and execute its output port when the observed data changes.

    How to use: To use this node, you will need to Start it with the data you want to validate. When the node is started, it will always execute you should not Continue to trigger the Start port as it will override the Input value you track and won't validate a modification of data as it was restarted. When connecting an edge in the Stop port, you will stop the validation of the Input value modification.

    Warning: Linking On Update to the Start port will restart the node and will never validate that the Input data changed.

    Ports

    Inputs

    Port Name Type Default Value Description
    Trigger Trigger signal to start observing the data.
    Trigger Trigger signal to stop observing the data.
    __ The data we want to validate. Can be of any type.

    Outputs

    Port Name Type Default Value Description
    Trigger Execute next action when the Input observed data changed.
    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)