docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct OnUpdate

    Implements
    IEntryPointNode
    INode
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Runtime
    Assembly: solution.dll
    Syntax
    [NodeSearcherItem("Events/On Update")]
    [Serializable]
    [NodeDescription("The **On Update** event node starts to trigger right after the **On Start** event node. From there, it will execute anything chained to it, during one frame and for any consecutive frames.", Example = "![](OnUpdate/OnUpdateExample_01.gif)\r\n\r\nIn this example, we have a Cube containing a visual script that will:\r\n\r\n1. Trigger the On Start event when entering play mode\r\n\r\n   1. Wait 2 seconds.\r\n   2. Set the variable **CanUpdate** to **True**.\r\n\r\n2. The On Update will execute When the variable **CanUpdate** is **True**.\r\n\r\n   1. The Elapsed time will be logged until:\r\n\r\n      - The object is destroyed.\r\n      - The object is disabled.\r\n      - The component with the script is destroyed.\r\n      - The component with the script is disabled.\r\n      - The variable CanUpdate is false.")]
    public struct OnUpdate : IEntryPointNode, INode

    Fields

    Name Description
    Enabled
    Output

    Methods

    Name Description
    Execute<TCtx>(TCtx)

    Extension Methods

    IVisualScriptingEventReceiverJobExtensions.Schedule<TJob, TEvent>(TJob, VisualScriptingEventSystem, JobHandle)
    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)